From c3f145ca2b9f5a4cfac3ffe1de7d901a4e8aba10 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 15 Feb 2022 09:51:50 +0100 Subject: mtest: print stderr of TAP/Rust tests in verbose/non-parallel mode Verbose, non-parallel tests generally print their output as they run, rather than after they finish. This however is not the case if stdout of the test is parsed as is the case for TAP and Rust tests. In this case, the output during the run is the list of the subtests, but stderr still has to be printed after the test finishes. --- mesonbuild/mtest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mesonbuild') diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 4488a8cbc..8208132bb 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -665,9 +665,8 @@ class ConsoleLogger(TestLogger): if not harness.options.quiet or not result.res.is_ok(): self.flush() - if result.verbose and not result.is_parallel and result.cmdline: - if not result.needs_parsing: - print(self.output_end) + if result.verbose and not result.is_parallel and result.cmdline and not result.needs_parsing: + print(self.output_end) print(harness.format(result, mlog.colorize_console(), max_left_width=self.max_left_width)) else: print(harness.format(result, mlog.colorize_console(), max_left_width=self.max_left_width), -- cgit v1.2.3