aboutsummaryrefslogtreecommitdiff
path: root/tests
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index 95acb54..1457dd5 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -25,13 +25,11 @@ mkrepo() {
mkdir -p $name
cd $name
git init
- n=1
- while test $n -le $count
+ for ((n=1; n<=count; n++))
do
echo $n >file-$n
git add file-$n
git commit -m "commit $n"
- n=$(expr $n + 1)
done
if test "$3" = "testplus"
then
@@ -103,7 +101,7 @@ run_test()
{
desc=$1
script=$2
- test_count=$(expr $test_count + 1)
+ ((test_count++))
printf "\ntest %d: name='%s'\n" $test_count "$desc" >>test-output.log
printf "test %d: eval='%s'\n" $test_count "$2" >>test-output.log
eval "$2" >>test-output.log 2>>test-output.log