Skip to content

Commit fe45cfb

Browse files
felipecgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0bc85ab commit fe45cfb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

contrib/remote-helpers/test-hg-bidi.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
test_description='Test bidirectionality of remote-hg'
1010

11-
. ./test-lib.sh
11+
test -n "$TEST_DIRECTORY" || TEST_DIRECTORY=${0%/*}/../../t
12+
. "$TEST_DIRECTORY"/test-lib.sh
1213

1314
if ! test_have_prereq PYTHON
1415
then

contrib/remote-helpers/test-hg-hg-git.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
test_description='Test remote-hg output compared to hg-git'
1010

11-
. ./test-lib.sh
11+
test -n "$TEST_DIRECTORY" || TEST_DIRECTORY=${0%/*}/../../t
12+
. "$TEST_DIRECTORY"/test-lib.sh
1213

1314
if ! test_have_prereq PYTHON
1415
then

0 commit comments

Comments
 (0)