aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-02-15 09:51:50 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-02-20 09:07:40 +0100
commitc3f145ca2b9f5a4cfac3ffe1de7d901a4e8aba10 (patch)
treec559e76f3c062ce9a51f01a5d498facaaf590570
parenta3e4272bd328778c1d35fd0f688fa29eef6a01f4 (diff)
downloadmeson-c3f145ca2b9f5a4cfac3ffe1de7d901a4e8aba10.zip
meson-c3f145ca2b9f5a4cfac3ffe1de7d901a4e8aba10.tar.gz
meson-c3f145ca2b9f5a4cfac3ffe1de7d901a4e8aba10.tar.bz2
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.
-rw-r--r--mesonbuild/mtest.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 4488a8c..8208132 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),