X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=blobdiff_plain;f=tests%2Fcommon;h=727ad0f33cec5cad0502ad0b6089f5447811408b;hp=30c6a8214f84fdd3c78ff2a40744bc45f18ab8cb;hb=HEAD;hpb=4e0502a242b89c73535b00cc1b199dfea38ce4d4 diff --git a/tests/common b/tests/common index 30c6a82..727ad0f 100644 --- a/tests/common +++ b/tests/common @@ -3,11 +3,14 @@ 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 + 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