summaryrefslogtreecommitdiffabout
path: root/tests/setup.sh
Side-by-side diff
Diffstat (limited to 'tests/setup.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-xtests/setup.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index 1457dd5..30f90d5 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -27,3 +27,4 @@ mkrepo() {
git init
- for ((n=1; n<=count; n++))
+ n=1
+ while test $n -le $count
do
@@ -32,2 +33,3 @@ mkrepo() {
git commit -m "commit $n"
+ n=$(expr $n + 1)
done
@@ -103,3 +105,3 @@ run_test()
script=$2
- ((test_count++))
+ test_count=$(expr $test_count + 1)
printf "\ntest %d: name='%s'\n" $test_count "$desc" >>test-output.log
@@ -113,3 +115,3 @@ run_test()
else
- ((test_failed++))
+ test_failed=$(expr $test_failed + 1)
printf " %2d) %-60s [failed]\n" $test_count "$desc"