[RFC PATCH 2/2] git-credential-netrc: use in-tree Git.pm for tests
- From
Todd Zullinger <tmz@pobox.com>
- Date
- Jun 7, 2018, 05:19 UTC
- Message-ID
- <20180607051958.759-3-tmz@pobox.com>
- In-Reply-To
- <20180607051958.759-1-tmz@pobox.com>
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: Todd Zullinger <tmz@pobox.com> --- contrib/credential/netrc/test.pl | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/contrib/credential/netrc/test.pl b/contrib/credential/netrc/test.pl index 1e1001030e..5e26b4d190 100755 --- a/contrib/credential/netrc/test.pl +++ b/contrib/credential/netrc/test.pl @@ -27,6 +27,9 @@ BEGIN ? $ENV{PATH} : (); +# use in-tree Git.pm +local $ENV{PERL5LIB} = $ENV{GITPERLLIB}; + diag "Testing insecure file, nothing should be found\n"; chmod 0644, $netrc; my $cred = run_credential(['-f', $netrc, 'get'],
-- 2.18.0.rc1