tests/common: enable a single subshell in the test environment before cleanup on...
[monkeysphere.git] / 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
 }