summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-05-21 04:02:21 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-05-21 04:02:21 -0700
commit921296d3dabcb0bfe0926a1590cc9f7be42ae3e9 (patch)
tree7807977e443c0a9ee0e8454800f6ebd7eda58be2 /t/test-lib.sh
parentMerge branch 'jn/gitweb-install' (diff)
parentgitweb: Move generating page title to separate subroutine (diff)
downloadtgif-921296d3dabcb0bfe0926a1590cc9f7be42ae3e9.tar.xz
Merge branch 'jn/gitweb-caching-prep'
* jn/gitweb-caching-prep: gitweb: Move generating page title to separate subroutine gitweb: Add custom error handler using die_error gitweb: Use nonlocal jump instead of 'exit' in die_error gitweb: href(..., -path_info => 0|1) Export more test-related variables when running external tests
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 9bfa14be7f..454880ac7d 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -473,6 +473,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.