aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-11-30 17:30:26 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2019-04-15 12:07:17 +0100
commit10749494c81d78b74421e8ed238339b1d067a0b6 (patch)
tree2c510dc995041ccb3d94085d67cb23ad89413aed /run_tests.py
parent1e9b753c95cc78922c45578a4cbfc9c1b6ef416b (diff)
downloadmeson-10749494c81d78b74421e8ed238339b1d067a0b6.zip
meson-10749494c81d78b74421e8ed238339b1d067a0b6.tar.gz
meson-10749494c81d78b74421e8ed238339b1d067a0b6.tar.bz2
Flush run_tests output so it appears before the test subprocesses it runs
This makes 'System information', 'Running unittests', etc. appear before any test output.
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 d72546b..fb3bc28 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -292,7 +292,7 @@ def main():
os.environ.pop('platform')
# Run tests
print(mlog.bold('Running unittests.').get_text(mlog.colorize_console))
- print()
+ print(flush=True)
# Can't pass arguments to unit tests, so set the backend to use in the environment
env = os.environ.copy()
env['MESON_UNIT_TEST_BACKEND'] = backend.name
@@ -325,7 +325,7 @@ def main():
else:
cross_test_args = mesonlib.python_command + ['run_cross_test.py']
print(mlog.bold('Running armhf cross tests.').get_text(mlog.colorize_console))
- print()
+ print(flush=True)
cmd = cross_test_args + ['cross/ubuntu-armhf.txt']
if options.failfast:
cmd += ['--failfast']
@@ -334,7 +334,7 @@ def main():
return returncode
print(mlog.bold('Running mingw-w64 64-bit cross tests.')
.get_text(mlog.colorize_console))
- print()
+ print(flush=True)
cmd = cross_test_args + ['cross/linux-mingw-w64-64bit.txt']
if options.failfast:
cmd += ['--failfast']