t/test-lib.sh: export PERL_PATH for use in scripts
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2012 04:42:11 +0000 (21:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2012 04:56:13 +0000 (21:56 -0700)
commit770bf6c5e2830add4b59d3dbf9929e62ed4d6fb7
treee09ef5a919244ec0c5f388655aaee33ed67a4184
parenta3428205e6d74542d6441baaa29d1cb1d1064d95
t/test-lib.sh: export PERL_PATH for use in scripts

Most notably, t4031 creates a small shell script that invokes perl
and we want to use "$PERL_PATH" to name the version of Perl suitable
for our use, read from GIT-BUILD-OPTS.  The test would fail when it
is directly run in t/ directory from the shell or "make" is run in t/
directory.

This problem was hidden from "make test" run in the top-level
directory, because its Makefile exports PERL_PATH.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh