summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-08-08 11:38:58 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-08-11 00:09:28 +0100
commit8c4f1a70c97b0683003ea91cc41d1891f7484201 (patch)
treee07d67a0f7ed9dd6be32c8ff054341bb2e79dbf3
parent9955af7c6e647780ce4aa0ac25f0357c1cb36344 (diff)
test suite: Honour new DGIT_TEST_KEEP_MUSTCLEAN
FTR, using this typically results in runes like DGIT_TEST_KEEP_MUSTCLEAN=y tests/using-intree tests/tests/ftpmasterapi-http 2>&1 | tee tests/tmp/log hanging instead of exiting, because the http server is still running and its stderr is still going to tee. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--tests/lib1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index 6f36130..c788744 100644
--- a/tests/lib
+++ b/tests/lib
@@ -25,6 +25,7 @@ END
trap '
rc=$?
set +e
+ [ "x$DGIT_TEST_KEEP_MUSTCLEAN" != x ] || \
[ "x$DGIT_TEST_TMP" = x ] || rm -rf $DGIT_TEST_TMP/must-clean
set -e
test $rc = 0 || t-report-failure