X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=blobdiff_plain;f=tests%2Fcommon;h=e53c31ed72e426726353a0ed0b10206e8815e261;hp=0f9050015cde858c58224dd387a57568ede5a00b;hb=ebd776722e0fd6dfacc79146c368d148f0e266cb;hpb=cadb991940633888988df530819ce9465cd688ed diff --git a/tests/common b/tests/common index 0f90500..e53c31e 100644 --- a/tests/common +++ b/tests/common @@ -3,9 +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 - bash + 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 [ "$XX" = bash ] ; then + echo "Entering subshell..." + cd "$TEMPDIR" + bash + fi fi cleanup