]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Preserve values of environment variables which are already set
authorMichał Kępień <michal@isc.org>
Wed, 21 Feb 2018 13:59:38 +0000 (14:59 +0100)
committerEvan Hunt <each@isc.org>
Sun, 25 Feb 2018 21:34:35 +0000 (13:34 -0800)
This enables the environment variables controlling run.sh behavior to be
permanently set in a working environment (e.g. to automatically force
colored output without using "-c" in each runall.sh invocation).

Relevant runall.sh command line arguments still have a higher priority.

(cherry picked from commit d989d20fe526716c774357ff372b38995e1e5065)
(cherry picked from commit 2cd174dda986f2a49ce821c132459fc45d1044e7)
(cherry picked from commit fdcac29f63c4fae1beb776494994e90032cf1044)

bin/tests/system/runall.sh

index 010c1eee73b8b4764878ccc04bca4f5f0ffb501d..9e343ec67012d8f7d9033067e5f993b75b5d3cdb 100644 (file)
@@ -33,8 +33,10 @@ SYSTEMTESTTOP=.
 
 usage="Usage: ./runall.sh [-c] [-n] [numprocesses]"
 
-SYSTEMTEST_FORCE_COLOR=0
-SYSTEMTEST_NO_CLEAN=0
+# Preserve values of environment variables which are already set.
+
+SYSTEMTEST_FORCE_COLOR=${SYSTEMTEST_FORCE_COLOR:-0}
+SYSTEMTEST_NO_CLEAN=${SYSTEMTEST_NO_CLEAN:-0}
 
 # Handle command line switches if present.