summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-07-02 23:49:12 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-03 00:15:31 (GMT)
commitd3140f5c2a6b42361bca960f627b00264d5c7372 (patch)
treeed7f74ee60e28fd4050af20995a351b5c098775d /t/test-lib.sh
parent65a4e98a22eab9317a05d1485c7c5a9c5befd589 (diff)
downloadgit-d3140f5c2a6b42361bca960f627b00264d5c7372.zip
git-d3140f5c2a6b42361bca960f627b00264d5c7372.tar.gz
git-d3140f5c2a6b42361bca960f627b00264d5c7372.tar.bz2
Perly Git: make sure we do test the freshly built one.
We could BEGIN { push @INC, '@@INSTLIBDIR@@'; } but that is not a good idea for normal execution. The would prevent a workaround for a user who is trying to override an old, faulty Git.pm installed on the system path with a newer version installed under $HOME/. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index fba0c51..298c6ca 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -206,8 +206,9 @@ PYTHON=`sed -e '1{
PYTHONPATH=$(pwd)/../compat
export PYTHONPATH
}
+RUNNING_GIT_TESTS=YesWeAre
PERL5LIB=$(pwd)/../perl/blib/lib:$(pwd)/../perl/blib/arch/auto/Git
-export PERL5LIB
+export PERL5LIB RUNNING_GIT_TESTS
test -d ../templates/blt || {
error "You haven't built things yet, have you?"
}