make test prompt for shell on failure enbabled by default, and turned off with env...
[monkeysphere.git] / tests / common
index e53c31ed72e426726353a0ed0b10206e8815e261..a000c565a2d4b2045c2ad425307945598484596d 100644 (file)
@@ -3,7 +3,7 @@
 failed_cleanup() {
     # FIXME: can we be more verbose here?
     echo 'FAILED!'
-    if [ "$MONKEYSPHERE_TEST_ALLOW_EXAMINATION" = prompt ] ; then
+    if [ -z "$MONKEYSPHERE_TEST_NO_EXAMINE" ] ; then
        read -p "press enter to cleanup and remove tmp (or type bash for a subshell to examine): " XX
        if [ "$XX" = bash ] ; then
            echo "Entering subshell..."