D5557: testrunner: make `-j100 --runs-per-test=100 test-foo.t` use 100 jobs

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Jan 10 22:33:43 UTC 2019


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It would use only 1 job since https://phab.mercurial-scm.org/rHG1039404c5e1d12f7ee3b09eedde803f52f8b369a (run-tests: print number of
  tests and parallel process count, 2018-10-13), but I'm pretty sure
  that was unintentional.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5557

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2860,7 +2860,8 @@
 
             tests = [self._gettest(d, i) for i, d in enumerate(testdescs)]
 
-            jobs = min(len(tests), self.options.jobs)
+            jobs = min(len(tests) * self.options.runs_per_test,
+                       self.options.jobs)
 
             failed = False
             kws = self.options.keywords



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list