]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib-functions.sh
test-lib-functions.sh: rewrite test_seq without Perl
[thirdparty/git.git] / t / test-lib-functions.sh
index 39b815163de123f88c4145d097929f401124f5d6..9734e322223c77c558d6198ab4a7ce56742839fd 100644 (file)
@@ -679,7 +679,12 @@ test_seq () {
        2)      ;;
        *)      error "bug in the test script: not 1 or 2 parameters to test_seq" ;;
        esac
-       perl -le 'print for $ARGV[0]..$ARGV[1]' -- "$@"
+       test_seq_counter__=$1
+       while test "$test_seq_counter__" -le "$2"
+       do
+               echo "$test_seq_counter__"
+               test_seq_counter__=$(( $test_seq_counter__ + 1 ))
+       done
 }
 
 # This function can be used to schedule some commands to be run