summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:21 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:21 -0700
commit921296d3dabcb0bfe0926a1590cc9f7be42ae3e9 (patch)
tree7807977e443c0a9ee0e8454800f6ebd7eda58be2 /t/test-lib.sh
parent14b8512f878b7b5682a77d95e8f017326a471bf3 (diff)
parentefb2d0c5dcea1069bae2d26c9534e2025ee63e66 (diff)
downloadgit-921296d3dabcb0bfe0926a1590cc9f7be42ae3e9.tar.gz
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.