From: Ian Jackson Date: Sun, 26 Aug 2018 10:25:26 +0000 (+0100) Subject: test suite: run-all: Without --progressive, rm and recreate tests/tmp X-Git-Tag: archive/debian/6.10~17 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=8744462e90f4af03214a1398d829c69ad034b4c6;p=dgit.git test suite: run-all: Without --progressive, rm and recreate tests/tmp This arranges to rerun tests/setup/ scripts, which wouldn't otherwise happen; that is IMO a bug. While we are here, introduce $tmpdir. Signed-off-by: Ian Jackson --- diff --git a/tests/run-all b/tests/run-all index c9301719..e1718fa9 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 ||: )