chiark / gitweb /
test suite: run-all: Without --progressive, rm and recreate tests/tmp
[dgit.git] / tests / run-all
index c93017192ee428ee1135b133bc39ea4c1f7808b7..e1718fa991944b89107b8eff20820cb93aa714a8 100755 (executable)
@@ -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 ||: )