From e987a88c196e6d7026bdaedd53f284ea6a4e5720 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Wed, 9 Jun 2021 11:02:38 +0200 Subject: tests: Force colorize CI output --- run_unittests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index 6f5ec58..b2b7367 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -10237,6 +10237,9 @@ def main(): # time spawning a lot of processes to distribute tests to in that case. if not running_single_tests(sys.argv, cases): pytest_args += ['-n', 'auto'] + # Let there be colors! + if 'CI' in os.environ: + pytest_args += ['--color=yes'] pytest_args += ['./run_unittests.py'] pytest_args += convert_args(sys.argv[1:]) return subprocess.run(python_command + ['-m', 'pytest'] + pytest_args).returncode -- cgit v1.1