]> 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)
committerMichał Kępień <michal@isc.org>
Wed, 21 Feb 2018 13:59:38 +0000 (14:59 +0100)
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.

bin/tests/system/runall.sh

index 284a6a50d4a4e2667e14a0940019c94accbbbf71..5bb0b589ac1c3bf175504dbc2772c30525b4fcc4 100644 (file)
@@ -26,8 +26,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.