run_some: fix shellcheck warning
shellcheck warns against using echo with flags, as posix sh won't support it. It suggests using printf, so let's do that. Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
parent
6d03bbea96
commit
61ca915ac5
@ -25,14 +25,14 @@ run_test()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$2" ]; then # ignore failure
|
if [ -n "$2" ]; then # ignore failure
|
||||||
echo -n "."
|
printf '.'
|
||||||
elif [ $passed -eq 1 ]; then
|
elif [ $passed -eq 1 ]; then
|
||||||
succeeded=$((succeeded+1))
|
succeeded=$((succeeded+1))
|
||||||
echo -n "+"
|
printf '+'
|
||||||
else
|
else
|
||||||
failed=$((failed+1))
|
failed=$((failed+1))
|
||||||
failed_tests="$failed_tests $1"
|
failed_tests="$failed_tests $1"
|
||||||
echo -n "-"
|
printf '-'
|
||||||
fi
|
fi
|
||||||
cat $1.log >> testsuite.log
|
cat $1.log >> testsuite.log
|
||||||
[ -f /etc/passwd.lock ] && echo $1 /etc/passwd.lock || true
|
[ -f /etc/passwd.lock ] && echo $1 /etc/passwd.lock || true
|
||||||
|
Loading…
Reference in New Issue
Block a user