mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
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>
This commit is contained in:
parent
2755af6e29
commit
b6faa78091
@ -113,7 +113,7 @@ run_test()
|
|||||||
then
|
then
|
||||||
printf " %2d) %-60s [ok]\n" $test_count "$desc"
|
printf " %2d) %-60s [ok]\n" $test_count "$desc"
|
||||||
else
|
else
|
||||||
((test_failed++))
|
test_failed=$(expr $test_failed + 1)
|
||||||
printf " %2d) %-60s [failed]\n" $test_count "$desc"
|
printf " %2d) %-60s [failed]\n" $test_count "$desc"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user