X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=tests%2Fcommon;h=727ad0f33cec5cad0502ad0b6089f5447811408b;hb=792f1e3324076f8521de33aa15f1dd7ba9c9a73f;hp=0f9050015cde858c58224dd387a57568ede5a00b;hpb=0dc13ca3b54ecd5ce311f88fed736aca1774b525;p=monkeysphere.git diff --git a/tests/common b/tests/common index 0f90500..727ad0f 100644 --- a/tests/common +++ b/tests/common @@ -3,9 +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 - 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