tests/setup.sh: allow testsuite to fail properly with POSIX standard shells The "((expr))" construct is not implemented by e.g. dash, so this commit replaces the construct with a more portable one. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 12:03:54 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
tests/setup.sh
→
tests/setup.sh
@@ -113,7 +113,7 @@ if test $res = 0
then printf " %2d) %-60s [ok]\n" $test_count "$desc" else - ((test_failed++)) + test_failed=$(expr $test_failed + 1) printf " %2d) %-60s [failed]\n" $test_count "$desc" fi }