summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-03-01 13:19:37 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-03-01 13:19:37 -0500
commitd506b0de7c385ffaf5801d93966c2515b9d1c101 (patch)
tree195fe6f280810ec60e52e6b1fbbf182b6e390df8 /tests/common
parent48cb182a7d0265aabed84d74b010ff0b24fa078c (diff)
tests no longer prompt for bash for inspection unless MONKEYSPHERE_TEST_ALLOW_EXAMINATION=prompt (makes running them in an automated environment cleaner). prune extra PATH in tests
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