Use expr instead of $((...)) in shell scripts

For Solaris 10 compatibility.
This commit is contained in:
Petri Lehtinen 2014-10-03 08:49:03 +03:00
parent 7fbe7c3960
commit d7a6269a17

View File

@ -34,15 +34,15 @@ failed=0
for suite in $SUITES; do for suite in $SUITES; do
echo "Suite: $suite" echo "Suite: $suite"
if $suites_srcdir/$suite/run $suite; then if $suites_srcdir/$suite/run $suite; then
passed=$(($passed+1)) passed=`expr $passed + 1`
else else
failed=$(($failed+1)) failed=`expr $failed + 1`
[ $STOP -eq 1 ] && break [ $STOP -eq 1 ] && break
fi fi
done done
if [ $failed -gt 0 ]; then if [ $failed -gt 0 ]; then
echo "$failed of $((passed+failed)) test suites failed" echo "$failed of `expr $passed + $failed` test suites failed"
exit 1 exit 1
else else
echo "$passed test suites passed" echo "$passed test suites passed"