mtest: show "timed out" messages with --print-errorlogs option

pull/9478/head
Hemmo Nieminen 3 years ago committed by Eli Schwartz
parent 478ac7f6cc
commit 64d204710f
  1. 3
      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)')

Loading…
Cancel
Save