diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-12 18:34:08 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-12 18:34:08 -0500 |
commit | 0dc13ca3b54ecd5ce311f88fed736aca1774b525 (patch) | |
tree | e2cf45aea45a1529436830a155f3e2c47bec304e /tests | |
parent | 5d6d207f7c1ad3e4545484fbab84ce25ef756ea0 (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')
-rw-r--r-- | tests/common | 5 |
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 } |