From 8744462e90f4af03214a1398d829c69ad034b4c6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 26 Aug 2018 11:25:26 +0100 Subject: 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 --- tests/run-all | 11 +++++++++-- 1 file 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 ||: ) -- cgit v1.2.3