From: Jakub Narebski Date: Sun, 5 Dec 2010 20:48:43 +0000 (+0100) Subject: t/test-lib.sh: Export also GIT_BUILD_DIR in test_external X-Git-Url: https://repo.or.cz/w/git/jnareb-git.git/commitdiff_plain/9429ba6b9e18347ef8bb39228051c57dcbabf8bf t/test-lib.sh: Export also GIT_BUILD_DIR in test_external This way we can use it in test scripts written in other languages (e.g. in Perl), and not rely on "$TEST_DIRECTORY/.." Signed-off-by: Jakub Narebski --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 48fa516004..c077fa4d10 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -552,9 +552,9 @@ test_external () { # Announce the script to reduce confusion about the # test output that follows. say_color "" "# run $test_count: $descr ($*)" - # Export TEST_DIRECTORY, TRASH_DIRECTORY and GIT_TEST_LONG + # Export TEST_DIRECTORY, GIT_BUILD_DIR, TRASH_DIRECTORY and GIT_TEST_LONG # to be able to use them in script - export TEST_DIRECTORY TRASH_DIRECTORY GIT_TEST_LONG + export TEST_DIRECTORY GIT_BUILD_DIR TRASH_DIRECTORY GIT_TEST_LONG # Run command; redirect its stderr to &4 as in # test_run_, but keep its stdout on our stdout even in # non-verbose mode.