aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2022-02-01 00:00:00 +0200
committerEli Schwartz <eschwartz93@gmail.com>2022-06-09 18:58:33 -0400
commit64d204710f67b167c34ff6a36bc169ab23ade8df (patch)
treef4f361c50463db279d00dba36e737ca5f553f1c5
parent478ac7f6cc24b686922add6383cb3ddf39d83d33 (diff)
downloadmeson-64d204710f67b167c34ff6a36bc169ab23ade8df.zip
meson-64d204710f67b167c34ff6a36bc169ab23ade8df.tar.gz
meson-64d204710f67b167c34ff6a36bc169ab23ade8df.tar.bz2
mtest: show "timed out" messages with --print-errorlogs option
-rw-r--r--mesonbuild/mtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 9096508..0beaf42 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -656,7 +656,8 @@ class ConsoleLogger(TestLogger):
def log(self, harness: 'TestHarness', result: 'TestRun') -> None:
self.running_tests.remove(result)
- if result.res is TestResult.TIMEOUT and result.verbose:
+ if result.res is TestResult.TIMEOUT and (result.verbose or
+ harness.options.print_errorlogs):
self.flush()
print(f'{result.name} time out (After {result.timeout} seconds)')