From 5b0629dc1180cd9500d78db181bf59ff0d4811c5 Mon Sep 17 00:00:00 2001 From: Hemmo Nieminen Date: Tue, 1 Feb 2022 00:00:00 +0200 Subject: mtest: print "live" test output when verbose with only 1 test Since running only one test sort of implies --num-processes=1 the "live" output of the test should be printed out when --verbose option has been given and running only a single test. --- mesonbuild/mtest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 31349ea..b5b1316 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -1681,6 +1681,8 @@ class TestHarness: sys.exit(125) self.name_max_len = max(uniwidth(self.get_pretty_suite(test)) for test in tests) + self.options.num_processes = min(self.options.num_processes, + len(tests) * self.options.repeat) startdir = os.getcwd() try: os.chdir(self.options.wd) -- cgit v1.1