chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: run-all: Without --progressive, rm and recreate tests/tmp
[dgit.git]
/
tests
/
run-all
diff --git
a/tests/run-all
b/tests/run-all
index c93017192ee428ee1135b133bc39ea4c1f7808b7..e1718fa991944b89107b8eff20820cb93aa714a8 100755
(executable)
--- a/
tests/run-all
+++ b/
tests/run-all
@@
-21,9
+21,16
@@
if [ $# != 0 ]; then
set TESTSCRIPTS="$*"
fi
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 ||: )
export DGIT_GNUPG_STUNT_ERRLOG=$( tty -s ||: )