enforce --no-armor when exporting to openpgp2ssh in case weird gpg.conf options ...
[monkeysphere.git] / tests / common
index adc96a24924961de855342b2ed4ac5d88f1de121..727ad0f33cec5cad0502ad0b6089f5447811408b 100644 (file)
@@ -3,7 +3,15 @@
 failed_cleanup() {
     # FIXME: can we be more verbose here?
     echo 'FAILED!'
-    read -p "press enter to cleanup and remove tmp:"
+    if [ -z "$MONKEYSPHERE_TEST_NO_EXAMINE" ] ; then
+       printf "press enter to cleanup and remove tmp (or type 'bash' for a subshell to examine): " >&2
+       read XX
+       if [ "$XX" = bash ] ; then
+           echo "Entering subshell..."
+           cd "$TEMPDIR"
+           bash
+       fi
+    fi
 
     cleanup
 }