Skip to content

Commit

Permalink
run_some: fix shellcheck warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hallyn committed Feb 28, 2023
1 parent 6d03bbe commit 61ca915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/run_some
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61ca915

Please sign in to comment.