aboutsummaryrefslogtreecommitdiff
path: root/contrib/remote-helpers/test-hg-bidi.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-09 13:50:00 -0500
committerJunio C Hamano <gitster@pobox.com>2014-04-09 14:20:47 -0700
commitfe45cfb518f7cb313051986e03c402bc206e55af (patch)
tree95911b91856178d50057cd1bf8f4ffdad68d2fa9 /contrib/remote-helpers/test-hg-bidi.sh
parent0bc85abb7aa9b24b093253018801a0fb43d01122 (diff)
downloadgit-fe45cfb518f7cb313051986e03c402bc206e55af.tar.gz
git-fe45cfb518f7cb313051986e03c402bc206e55af.tar.xz
remote-helpers: allow all tests running from any dir
Commit d3243d7 (test-bzr.sh, test-hg.sh: allow running from any dir) allowed the tests to run from any directory, however, it didn't update all the tests. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers/test-hg-bidi.sh')
-rwxr-xr-xcontrib/remote-helpers/test-hg-bidi.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/remote-helpers/test-hg-bidi.sh b/contrib/remote-helpers/test-hg-bidi.sh
index e24c51daa..d86e147d3 100755
--- a/contrib/remote-helpers/test-hg-bidi.sh
+++ b/contrib/remote-helpers/test-hg-bidi.sh
@@ -8,7 +8,8 @@
test_description='Test bidirectionality of remote-hg'
-. ./test-lib.sh
+test -n "$TEST_DIRECTORY" || TEST_DIRECTORY=${0%/*}/../../t
+. "$TEST_DIRECTORY"/test-lib.sh
if ! test_have_prereq PYTHON
then