提交 eb35afbb 编写于 作者: L Lukáš Doktor

selftests.checkall: Allow multiple arguments in our run_rc function

So far we only executed the first argument, but we might want to execute
complex cmdlines instead just one command. Let's use $* instead of $1.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 12879d02
......@@ -4,7 +4,7 @@ run_rc() {
CHECK=$1
shift
echo -e "\n\e[32mRunning '$1'\e[0m"
eval $1
eval $*
if [ $? != 0 ]; then
echo -e "\e[31m$CHECK FAILED\e[0m"
ERR+=("$CHECK")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册