X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=tests%2Fcommon;h=a000c565a2d4b2045c2ad425307945598484596d;hb=8ca3fdd64f5ca2827d262b402f7e2eac068966ef;hp=30c6a8214f84fdd3c78ff2a40744bc45f18ab8cb;hpb=eb88374be90344d1808fe49a5bc69a547a09280d;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