]> git.ipfire.org Git - thirdparty/bind9.git/commit
Allow forcing colored system test output
authorMichał Kępień <michal@isc.org>
Wed, 21 Feb 2018 13:59:35 +0000 (14:59 +0100)
committerEvan Hunt <each@isc.org>
Sun, 25 Feb 2018 01:37:44 +0000 (17:37 -0800)
commitcbebf7ef5995c7214b63340fd8ac7ef03f8b53d7
tree700628539e6ec3059065282f772645161dd3013d
parente9c4dbe36147c6ae16dd353793eb7d376ff622a7
Allow forcing colored system test output

As parallel.mk and runsequential.sh both pipe system test output through
"tee" (for the purpose of creating test.output), run.sh invoked from
these two files detects it is not writing to a terminal, which prevents
colored output from being generated.  Allow forcing colored output using
a new command line argument for runall.sh, "-c", which sets an
environment variable (SYSTEMTEST_FORCE_COLOR) causing conf.sh to
unconditionally enable colored output.

The same environment variable can also be used directly to force colored
output when using "make test" instead of runall.sh.

(cherry picked from commit a324031a82a2b312d8f803040dd81eadb554785f)
bin/tests/system/README
bin/tests/system/conf.sh.in
bin/tests/system/runall.sh