X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=blobdiff_plain;f=tests%2Fcommon;h=727ad0f33cec5cad0502ad0b6089f5447811408b;hp=e53c31ed72e426726353a0ed0b10206e8815e261;hb=HEAD;hpb=d506b0de7c385ffaf5801d93966c2515b9d1c101 diff --git a/tests/common b/tests/common index e53c31e..727ad0f 100644 --- a/tests/common +++ b/tests/common @@ -3,8 +3,9 @@ failed_cleanup() { # FIXME: can we be more verbose here? echo 'FAILED!' - if [ "$MONKEYSPHERE_TEST_ALLOW_EXAMINATION" = prompt ] ; then - read -p "press enter to cleanup and remove tmp (or type bash for a subshell to examine): " XX + 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"