diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-11-06 19:18:27 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-11-06 19:18:27 +0100 |
commit | b8a7eb12d459c48943e31762b24b169af8c427a1 (patch) | |
tree | bb5bfcf6e5f71a478e7586bd1d128aa94bfd7dbe /tests | |
parent | 140012d7a8e51df5a9f9c556696778b86ade4fc9 (diff) | |
parent | e4d2f2b042100182ff5b214fd6848b71d70fad7d (diff) | |
download | cgit-b8a7eb12d459c48943e31762b24b169af8c427a1.tar.gz cgit-b8a7eb12d459c48943e31762b24b169af8c427a1.tar.xz |
Merge branch 'stable'
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/setup.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/setup.sh b/tests/setup.sh index 1457dd5..95acb54 100755 --- a/tests/setup.sh +++ b/tests/setup.sh @@ -25,11 +25,13 @@ mkrepo() { mkdir -p $name cd $name git init - for ((n=1; n<=count; n++)) + n=1 + while test $n -le $count do echo $n >file-$n git add file-$n git commit -m "commit $n" + n=$(expr $n + 1) done if test "$3" = "testplus" then @@ -101,7 +103,7 @@ run_test() { desc=$1 script=$2 - ((test_count++)) + test_count=$(expr $test_count + 1) 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 |