summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-05-01 13:55:00 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-01 12:11:11 -0700
commitf71db097efa1cdd304bfa2dd6d365592c1866543 (patch)
tree03866e73d1d225a807a0da788a8f474a18bdd093 /t
parentGit 1.7.6.6 (diff)
downloadtgif-f71db097efa1cdd304bfa2dd6d365592c1866543.tar.xz
t/gitweb-lib: use $PERL_PATH to run gitweb
The current code runs "perl gitweb.cgi" to test gitweb. This will use whatever version of perl happens to be first in the PATH. We are better off using the specific perl that the user specified via PERL_PATH, which matches what gets put on the #!-line of the built gitweb.cgi. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/gitweb-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh
index 292753f77c..f5fd940ff9 100644
--- a/t/gitweb-lib.sh
+++ b/t/gitweb-lib.sh
@@ -68,7 +68,7 @@ gitweb_run () {
# written to web server logs, so we are not interested in that:
# we are interested only in properly formatted errors/warnings
rm -f gitweb.log &&
- perl -- "$SCRIPT_NAME" \
+ "$PERL_PATH" -- "$SCRIPT_NAME" \
>gitweb.output 2>gitweb.log &&
perl -w -e '
open O, ">gitweb.headers";