Skip to content

Commit 770bf6c

Browse files
committed
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 <[email protected]>
1 parent a342820 commit 770bf6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/test-lib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,8 @@ export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG_NOSYSTEM GIT_ATTR_NOSYSTEM
494494

495495
. "$GIT_BUILD_DIR"/GIT-BUILD-OPTIONS
496496

497+
export PERL_PATH
498+
497499
if test -z "$GIT_TEST_CMP"
498500
then
499501
if test -n "$GIT_TEST_CMP_USE_COPIED_CONTEXT"

0 commit comments

Comments
 (0)