aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-18 14:09:30 +0100
committerXavier Claessens <xclaesse@gmail.com>2021-01-21 08:54:35 -0500
commit9ba7b0ebd064517832cc37f45d8f549666a06825 (patch)
tree6021e2abf757cfb3a64d427e422be292bde4334a /run_tests.py
parent05ab792d58860715f0bbc9986963fb30bd49ac36 (diff)
downloadmeson-9ba7b0ebd064517832cc37f45d8f549666a06825.zip
meson-9ba7b0ebd064517832cc37f45d8f549666a06825.tar.gz
meson-9ba7b0ebd064517832cc37f45d8f549666a06825.tar.bz2
mlog: add __str__ method to AnsiDecorator
Automatically colorize the text when printing the AnsiDecorator, based on the result of mlog.colorize_console(). This is how AnsiDecorator is used most of the time anyway.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_tests.py b/run_tests.py
index da894c0..24d6a51 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -290,7 +290,7 @@ def run_configure(commandlist, env=None):
return run_configure_inprocess(commandlist, env=env)
def print_system_info():
- print(mlog.bold('System information.').get_text(mlog.colorize_console()))
+ print(mlog.bold('System information.'))
print('Architecture:', platform.architecture())
print('Machine:', platform.machine())
print('Platform:', platform.system())
@@ -364,7 +364,7 @@ def main():
print(flush=True)
returncode = 0
else:
- print(mlog.bold('Running unittests.').get_text(mlog.colorize_console()))
+ print(mlog.bold('Running unittests.'))
print(flush=True)
cmd = mesonlib.python_command + ['run_unittests.py', '-v']
if options.failfast:
@@ -377,7 +377,7 @@ def main():
else:
cross_test_args = mesonlib.python_command + ['run_cross_test.py']
for cf in options.cross:
- print(mlog.bold('Running {} cross tests.'.format(cf)).get_text(mlog.colorize_console()))
+ print(mlog.bold('Running {} cross tests.'.format(cf)))
print(flush=True)
cmd = cross_test_args + ['cross/' + cf]
if options.failfast: