summaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-06-09 11:02:38 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-06-09 13:25:36 +0200
commite987a88c196e6d7026bdaedd53f284ea6a4e5720 (patch)
treee32faabb444515b4a335dc9e7c3cd4d00c58e1cd /run_unittests.py
parent7fac515acf9515c60a60254ec3344a5a48461489 (diff)
downloadmeson-e987a88c196e6d7026bdaedd53f284ea6a4e5720.tar.gz
tests: Force colorize CI output
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 6f5ec58b1..b2b7367b0 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