X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=tests%2Fcommon;h=6d732c82682ea73407bc8de16c4b9a0b5fcd36a0;hb=48af03c6bade14ec20256c24ef234cab79e1fb35;hp=30c6a8214f84fdd3c78ff2a40744bc45f18ab8cb;hpb=eb88374be90344d1808fe49a5bc69a547a09280d;p=monkeysphere.git diff --git a/tests/common b/tests/common index 30c6a82..6d732c8 100644 --- a/tests/common +++ b/tests/common @@ -3,11 +3,13 @@ failed_cleanup() { # FIXME: can we be more verbose here? echo 'FAILED!' - 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..." - cd "$TEMPDIR" - bash + 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..." + cd "$TEMPDIR" + bash + fi fi cleanup