diff options
author | Hemmo Nieminen <hemmo.nieminen@iki.fi> | 2016-12-23 22:55:44 +0200 |
---|---|---|
committer | Hemmo Nieminen <hemmo.nieminen@iki.fi> | 2017-01-03 09:51:31 +0200 |
commit | ebea1e3bd95c8120dbd72d3629ca242983eef1b8 (patch) | |
tree | 5b5d1908f1893c23cf0b8851c03d7fe7bcd8889a /mesontest.py | |
parent | 01be50fdd90851f17de5499537f10b5b62c9fb49 (diff) | |
download | meson-ebea1e3bd95c8120dbd72d3629ca242983eef1b8.zip meson-ebea1e3bd95c8120dbd72d3629ca242983eef1b8.tar.gz meson-ebea1e3bd95c8120dbd72d3629ca242983eef1b8.tar.bz2 |
mesontest: Print test stats even if in verbose mode.
Diffstat (limited to 'mesontest.py')
-rwxr-xr-x | mesontest.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/mesontest.py b/mesontest.py index b39cb4d..af4ae2a 100755 --- a/mesontest.py +++ b/mesontest.py @@ -416,16 +416,12 @@ class TestHarness: self.drain_futures(futures, logfile, jsonlogfile) futures = [] res = self.run_single_test(wrap, test) - if not self.options.verbose: - self.print_stats(numlen, tests, visible_name, res, i, - logfile, jsonlogfile) + self.print_stats(numlen, tests, visible_name, res, i, logfile, jsonlogfile) else: if not executor: executor = conc.ThreadPoolExecutor(max_workers=self.options.num_processes) f = executor.submit(self.run_single_test, wrap, test) - if not self.options.verbose: - futures.append((f, numlen, tests, visible_name, i, - logfile, jsonlogfile)) + futures.append((f, numlen, tests, visible_name, i, logfile, jsonlogfile)) if self.options.repeat > 1 and self.fail_count: break if self.options.repeat > 1 and self.fail_count: @@ -448,11 +444,9 @@ class TestHarness: (result, numlen, tests, name, i, logfile, jsonlogfile) = i if self.options.repeat > 1 and self.fail_count: result.cancel() - self.print_stats(numlen, tests, name, result.result(), i, logfile, jsonlogfile) - elif not self.options.verbose: - self.print_stats(numlen, tests, name, result.result(), i, logfile, jsonlogfile) - else: + if self.options.verbose: result.result() + self.print_stats(numlen, tests, name, result.result(), i, logfile, jsonlogfile) def run_special(self): 'Tests run by the user, usually something like "under gdb 1000 times".' |