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:
Serge Hallyn 2023-02-27 21:16:38 -06:00
parent 6d03bbea96
commit 61ca915ac5

View File

@ -25,14 +25,14 @@ run_test()
fi
if [ -n "$2" ]; then # ignore failure
echo -n "."
printf '.'
elif [ $passed -eq 1 ]; then
succeeded=$((succeeded+1))
echo -n "+"
printf '+'
else
failed=$((failed+1))
failed_tests="$failed_tests $1"
echo -n "-"
printf '-'
fi
cat $1.log >> testsuite.log
[ -f /etc/passwd.lock ] && echo $1 /etc/passwd.lock || true