X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=tests%2Fcommon;h=e53c31ed72e426726353a0ed0b10206e8815e261;hb=0e2af948ab640cd4865d41951c7b8c2a35437f59;hp=adc96a24924961de855342b2ed4ac5d88f1de121;hpb=ee3660b61a72c0fd17f7841c1d0c67df6e9f9164;p=monkeysphere.git diff --git a/tests/common b/tests/common index adc96a2..e53c31e 100644 --- a/tests/common +++ b/tests/common @@ -3,7 +3,14 @@ failed_cleanup() { # FIXME: can we be more verbose here? echo 'FAILED!' - read -p "press enter to cleanup and remove tmp:" + 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 }