summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorMatt Goins <mjgoins@openflows.com>2009-03-10 09:33:05 -0400
committerMatt Goins <mjgoins@openflows.com>2009-03-10 09:33:05 -0400
commit282c489f3101f0d744b66d88853a150e79b0870d (patch)
treeb4028ecbb3d313ba41f956cc00fea7925982bfbb /tests/common
parentcec56faf07bb4f3b8d563e4f3c9042b6579356e2 (diff)
parent69b3e256e2017d5664ef37d06aae5e5bcf446575 (diff)
Merge commit 'dkg/master'
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/common b/tests/common
index 30c6a82..e53c31e 100644
--- a/tests/common
+++ b/tests/common
@@ -3,11 +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
- echo "Entering subshell..."
- cd "$TEMPDIR"
- 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