From e0816d63979a16ddc106fc4b506640e46febed98 Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Sat, 18 Jan 2020 10:28:47 +0100 Subject: [PATCH] Add --nocolor option to test.py --- test.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 09498601c..d7eb2a7bf 100755 --- a/test.py +++ b/test.py @@ -103,7 +103,7 @@ test_runner_name = "test-runner" # If the user has constrained us to run certain kinds of tests, we can tell waf # to only build # -core_kinds = ["bvt", "core", "performance", "system", "unit"] +core_kinds = ["core", "performance", "system", "unit"] # # There are some special cases for test suites that kill valgrind. This is @@ -2010,10 +2010,16 @@ def main(argv): metavar="XML-FILE", help="write detailed test results into XML-FILE.xml") + parser.add_option("--nocolor", action="store_true", dest="nocolor", default=False, + help="do not use colors in the standard output") + global options options = parser.parse_args()[0] signal.signal(signal.SIGINT, sigint_hook) - + + if options.nocolor: + colors_lst['USE'] = False + return run_tests() if __name__ == '__main__':