aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)