diff options
author | Jakub Narebski <jnareb@gmail.com> | 2010-04-24 15:50:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-05-01 12:09:35 -0700 |
commit | 5ae8030fdeb0bb00b94cc830dc98d4fb9d0d532e (patch) | |
tree | f1db937a0edebf47acf8a241406845099ee98639 /t | |
parent | Git 1.7.1 (diff) | |
download | tgif-5ae8030fdeb0bb00b94cc830dc98d4fb9d0d532e.tar.xz |
Export more test-related variables when running external tests
Add exporting TEST_DIRECTORY and TRASH_DIRECTORY to test_external, for
external tests to be able to find test script (and git sources), and
to find trash directory (usually with test repository in it).
Add also exporting GIT_TEST_LONG, so that external test can skip
time-intensive tests unless test is invoked with `--long' option.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Acked-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r-- | t/test-lib.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index c582964b0d..6187328e93 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -459,6 +459,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 + # to be able to use them in script + export TEST_DIRECTORY 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. |