aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2022-02-01 00:00:00 +0200
committerEli Schwartz <eschwartz93@gmail.com>2022-06-09 18:58:33 -0400
commit5b0629dc1180cd9500d78db181bf59ff0d4811c5 (patch)
tree98941f51f79906519716940f1d79c326d2a817b0
parentd6e1b72db0bc09a1af7ad28f883a9133ed4406ff (diff)
downloadmeson-5b0629dc1180cd9500d78db181bf59ff0d4811c5.zip
meson-5b0629dc1180cd9500d78db181bf59ff0d4811c5.tar.gz
meson-5b0629dc1180cd9500d78db181bf59ff0d4811c5.tar.bz2
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.
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 2 insertions, 0 deletions
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)