git-credential-netrc: use in-tree Git.pm for tests

The netrc test.pl script calls git-credential-netrc which imports the Git module. Pass GITPERLLIB to git-credential-netrc via PERL5LIB to ensure the in-tree Git module is used for testing. Signed-off-by: Luis Marsano <luis.marsano@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Luis Marsano committed Jun 12, 2018 at 23:10 UTC 04f673d7e47ba8aa413a47038abfc76b16d6c23b
2 files changed +2 -2
contrib/credential/netrc/t-git-credential-netrc.sh
+2 -1
@@ -23,9 +23,10 @@
23 # The external test will outputs its own plan
24 test_external_has_tap=1
25
26 + export PERL5LIB="$GITPERLLIB"
27 test_external \
28 'git-credential-netrc' \
28 - perl "$TEST_DIRECTORY"/../contrib/credential/netrc/test.pl
29 + perl "$GIT_BUILD_DIR"/contrib/credential/netrc/test.pl
30
31 test_done
32 )
contrib/credential/netrc/test.pl
-1
@@ -1,5 +1,4 @@
1 #!/usr/bin/perl
2 -use lib (split(/:/, $ENV{GITPERLLIB}));
2
3 use warnings;
4 use strict;