diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-14 10:26:21 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-15 10:03:54 +0100 |
commit | 90ea0dc5835426c61a002b78a9691b451e055342 (patch) | |
tree | e2db929a632874ad59b5f96cab1f84f9f6411956 /mesonbuild/mtest.py | |
parent | c1c1408fae067d0a24c30c72a1e310c4a09a62be (diff) | |
download | meson-90ea0dc5835426c61a002b78a9691b451e055342.zip meson-90ea0dc5835426c61a002b78a9691b451e055342.tar.gz meson-90ea0dc5835426c61a002b78a9691b451e055342.tar.bz2 |
mtest: disable the progress report in gdb mode
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r-- | mesonbuild/mtest.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 8b132a9..f112177 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -535,9 +535,7 @@ class ConsoleLogger(TestLogger): self.test_count = harness.test_count - # In verbose mode, the progress report gets in the way of the tests' - # stdout and stderr. - if self.is_tty() and not harness.options.verbose: + if self.is_tty() and not harness.need_console: # Account for "[aa-bb/cc] OO " in the progress report self.max_left_width = 3 * len(str(self.test_count)) + 8 self.progress_task = asyncio.ensure_future(report_progress()) @@ -1300,6 +1298,7 @@ class TestHarness: self.is_run = False self.loggers = [] # type: T.List[TestLogger] self.loggers.append(ConsoleLogger()) + self.need_console = False if self.options.benchmark: self.tests = load_benchmarks(options.wd) @@ -1450,6 +1449,9 @@ class TestHarness: runners = [self.get_test_runner(test) for test in tests] self.duration_max_len = max([len(str(int(runner.timeout or 99))) for runner in runners]) + # Disable the progress report if it gets in the way + self.need_console = any((runner.console_mode is not ConsoleUser.LOGGER + for runner in runners)) self.run_tests(runners) finally: os.chdir(startdir) |