summaryrefslogtreecommitdiff
path: root/tests/run-all
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-all')
-rwxr-xr-xtests/run-all11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/run-all b/tests/run-all
index c930171..e1718fa 100755
--- a/tests/run-all
+++ b/tests/run-all
@@ -21,9 +21,16 @@ if [ $# != 0 ]; then
set TESTSCRIPTS="$*"
fi
-mkdir -p tests/tmp
+tmpdir=tests/tmp
+
+case "$DGIT_TESTS_PROGRESSIVE" in
+''|n)
+ rm -rf -- "$tmpdir"
+ ;;
+esac
+
+mkdir -p -- "$tmpdir"
-${DGIT_TESTS_PROGRESSIVE+:} rm -f tests/tmp/*.ok
export DGIT_GNUPG_STUNT_ERRLOG=$( tty -s ||: )