diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-09 11:02:38 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-09 13:25:36 +0200 |
commit | e987a88c196e6d7026bdaedd53f284ea6a4e5720 (patch) | |
tree | e32faabb444515b4a335dc9e7c3cd4d00c58e1cd /run_unittests.py | |
parent | 7fac515acf9515c60a60254ec3344a5a48461489 (diff) | |
download | meson-e987a88c196e6d7026bdaedd53f284ea6a4e5720.zip meson-e987a88c196e6d7026bdaedd53f284ea6a4e5720.tar.gz meson-e987a88c196e6d7026bdaedd53f284ea6a4e5720.tar.bz2 |
tests: Force colorize CI output
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |