From c8c12758522ce44c1d61a5cb1c2c7506992d9ec1 Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr" Date: Mon, 23 Mar 2020 13:11:14 -0700 Subject: [PATCH] Make test.py respect NOCOLOR like waf --- test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 13b42c96d..c2a0dd4c7 100755 --- a/test.py +++ b/test.py @@ -2014,8 +2014,11 @@ def main(argv): global options options = parser.parse_args()[0] signal.signal(signal.SIGINT, sigint_hook) + + # From waf/waflib/Options.py + envcolor=os.environ.get('NOCOLOR','') and 'no' or 'auto' or 'yes' - if options.nocolor: + if options.nocolor or envcolor == 'no': colors_lst['USE'] = False return run_tests()