diff options
author | Vincent van Ravesteijn <vfr@lyx.org> | 2012-06-11 19:01:53 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-12 09:30:41 -0700 |
commit | a3428205e6d74542d6441baaa29d1cb1d1064d95 (patch) | |
tree | 0ee104bbd1c619f46234d342fb6774f44b2f26c8 /t/t5300-pack-object.sh | |
parent | 9bea2b5896701cf952f75c8f6756656cd3c40af0 (diff) | |
download | git-a3428205e6d74542d6441baaa29d1cb1d1064d95.tar.gz git-a3428205e6d74542d6441baaa29d1cb1d1064d95.tar.xz |
t: Replace 'perl' by $PERL_PATH
GIT-BUILD-OPTIONS defines PERL_PATH to be used in the test suite. Only a
few tests already actually use this variable when perl is needed. The
other test just call 'perl' and it might happen that the wrong perl
interpreter is used.
This becomes problematic on Windows, when the perl interpreter that is
compiled and installed on the Windows system is used, because this perl
interpreter might introduce some unexpected LF->CRLF conversions.
This patch makes sure that $PERL_PATH is used everywhere in the test suite
and that the correct perl interpreter is used.
Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5300-pack-object.sh')
-rwxr-xr-x | t/t5300-pack-object.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index d9d856b87..a97bb7481 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -13,9 +13,9 @@ TRASH=`pwd` test_expect_success \ 'setup' \ 'rm -f .git/index* && - perl -e "print \"a\" x 4096;" > a && - perl -e "print \"b\" x 4096;" > b && - perl -e "print \"c\" x 4096;" > c && + $PERL_PATH -e "print \"a\" x 4096;" > a && + $PERL_PATH -e "print \"b\" x 4096;" > b && + $PERL_PATH -e "print \"c\" x 4096;" > c && test-genrandom "seed a" 2097152 > a_big && test-genrandom "seed b" 2097152 > b_big && git update-index --add a a_big b b_big c && @@ -129,7 +129,7 @@ test_expect_success \ cd "$TRASH" test_expect_success 'compare delta flavors' ' - perl -e '\'' + $PERL_PATH -e '\'' defined($_ = -s $_) or die for @ARGV; exit 1 if $ARGV[0] <= $ARGV[1]; '\'' test-2-$packname_2.pack test-3-$packname_3.pack |