X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=tests%2Fcommon;h=a000c565a2d4b2045c2ad425307945598484596d;hb=00ff70f6038a20c09968bc7b1cd2309916e178a8;hp=30c6a8214f84fdd3c78ff2a40744bc45f18ab8cb;hpb=062f4e0273404c14b31216442308f14b30d34947;p=monkeysphere.git diff --git a/tests/common b/tests/common index 30c6a82..a000c56 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