chiark / gitweb /
test suite: run-all: Move setting of TESTSCRIPTS
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Aug 2018 10:41:47 +0000 (11:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Aug 2018 10:54:41 +0000 (11:54 +0100)
NFC

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/run-all

index a37b6aa..b188223 100755 (executable)
@@ -17,10 +17,6 @@ done
 ncpus=$(nproc || echo 1)
 jcpus=-j$(( ncpus * 134 / 100 ))
 
-if [ $# != 0 ]; then
-       set TESTSCRIPTS="$*"
-fi
-
 if [ "x$DGIT_TESTS_TMPDIR" != x ]; then
        tmpdir="$PWD"
        tmpdir="${tmpdir#/}"
@@ -41,6 +37,9 @@ esac
 
 mkdir -p -- "$tmpdir"
 
+if [ $# != 0 ]; then
+       set TESTSCRIPTS="$*"
+fi
 
 export DGIT_GNUPG_STUNT_ERRLOG=$( tty -s ||: )