mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
test-bzr.sh, test-hg.sh: allow running from any dir
Set TEST_DIRECTORY to the t/ directory (if TEST_DIRECTORY is not already set) so that the user doesn't already have to be in the test directory to run these test scripts. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Based-on-patch-by: Richard Hansen <rhansen@bbn.com> Reviewed-by: Richard Hansen <rhansen@bbn.com> Signed-off-by: Richard Hansen <rhansen@bbn.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
85176d7251
commit
d3243d738d
|
@ -5,7 +5,8 @@
|
|||
|
||||
test_description='Test remote-bzr'
|
||||
|
||||
. ./test-lib.sh
|
||||
test -n "$TEST_DIRECTORY" || TEST_DIRECTORY=${0%/*}/../../t
|
||||
. "$TEST_DIRECTORY"/test-lib.sh
|
||||
|
||||
if ! test_have_prereq PYTHON
|
||||
then
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
|
||||
test_description='Test remote-hg'
|
||||
|
||||
. ./test-lib.sh
|
||||
test -n "$TEST_DIRECTORY" || TEST_DIRECTORY=${0%/*}/../../t
|
||||
. "$TEST_DIRECTORY"/test-lib.sh
|
||||
|
||||
if ! test_have_prereq PYTHON
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue