aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2022-02-01 00:00:00 +0200
committerHemmo Nieminen <hemmo.nieminen@iki.fi>2022-03-23 00:00:00 +0200
commit4b64776fce28f00ebb226a70b55a8bccebab9350 (patch)
treec1df585edf52151419becfddd672a4f8f479910c
parent33feccc23024b480abe64d3cabec17ef3b89b611 (diff)
downloadmeson-4b64776fce28f00ebb226a70b55a8bccebab9350.zip
meson-4b64776fce28f00ebb226a70b55a8bccebab9350.tar.gz
meson-4b64776fce28f00ebb226a70b55a8bccebab9350.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 d8f51b2..4d126b4 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1686,6 +1686,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)