all repos — cgit @ b6faa78091a1340b73e291f1f87604f246d3f391

a hyperfast web frontend for git written in c

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
commit

b6faa78091a1340b73e291f1f87604f246d3f391

parent

2755af6e29801ea10b5d7be6a0a5635ba3bc9660

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M tests/setup.shtests/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 }