tests/common: enable a single subshell in the test environment before cleanup on...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 12 Feb 2009 23:34:08 +0000 (18:34 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 12 Feb 2009 23:34:08 +0000 (18:34 -0500)
tests/common

index adc96a24924961de855342b2ed4ac5d88f1de121..0f9050015cde858c58224dd387a57568ede5a00b 100644 (file)
@@ -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
 }