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>

Jeff King committed May 1, 2012 at 13:55 UTC f71db097efa1cdd304bfa2dd6d365592c1866543
1 file changed +1 -1
t/gitweb-lib.sh
+1 -1
@@ -68,7 +68,7 @@ gitweb_run () {
68 # written to web server logs, so we are not interested in that:
69 # we are interested only in properly formatted errors/warnings
70 rm -f gitweb.log &&
71 - perl -- "$SCRIPT_NAME" \
71 + "$PERL_PATH" -- "$SCRIPT_NAME" \
72 >gitweb.output 2>gitweb.log &&
73 perl -w -e '
74 open O, ">gitweb.headers";