From: Jeff King Date: Tue, 01 May 2012 17:55:00 GMT Subject: [PATCH] t/gitweb-lib: use $PERL_PATH to run gitweb Message-ID: <20120501175500.GA24258@sigill.intra.peff.net> In-Reply-To: <4FA02274.6070601@web.de> 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 --- On Tue, May 01, 2012 at 07:50:44PM +0200, Torsten Bögershausen wrote: > > Torsten, does that fix your problem? > Yes, it does. OK, here it is with a commit message. t/gitweb-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh index 21d11d6..ae2dc46 100644 --- a/t/gitweb-lib.sh +++ b/t/gitweb-lib.sh @@ -69,7 +69,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"; -- 1.7.10.630.g31718