From: Jeff King Date: Tue, 1 May 2012 17:55:00 +0000 (-0400) Subject: t/gitweb-lib: use $PERL_PATH to run gitweb X-Git-Tag: v1.7.10.2~22^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f71db097efa1cdd304bfa2dd6d365592c1866543;p=git 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 Signed-off-by: Junio C Hamano --- 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";