summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-02-12 18:34:08 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-02-12 18:34:08 -0500
commit0dc13ca3b54ecd5ce311f88fed736aca1774b525 (patch)
treee2cf45aea45a1529436830a155f3e2c47bec304e /tests/common
parent5d6d207f7c1ad3e4545484fbab84ce25ef756ea0 (diff)
tests/common: enable a single subshell in the test environment before cleanup on failure; makes it easier to have $PATH, etc set up
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/common b/tests/common
index adc96a2..0f90500 100644
--- a/tests/common
+++ b/tests/common
@@ -3,7 +3,10 @@
failed_cleanup() {
# FIXME: can we be more verbose here?
echo 'FAILED!'
- read -p "press enter to cleanup and remove tmp:"
+ read -p "press enter to cleanup and remove tmp (or type bash for a subshell to examine): " XX
+ if [ "$XX" = bash ] ; then
+ bash
+ fi
cleanup
}