Show More
@@ -2859,8 +2859,9 b' class TestRunner(object):' | |||
|
2859 | 2859 | testdescs = orig |
|
2860 | 2860 | |
|
2861 | 2861 | tests = [self._gettest(d, i) for i, d in enumerate(testdescs)] |
|
2862 | ||
|
2863 | jobs = min(len(tests), self.options.jobs) | |
|
2862 | num_tests = len(tests) * self.options.runs_per_test | |
|
2863 | ||
|
2864 | jobs = min(num_tests, self.options.jobs) | |
|
2864 | 2865 | |
|
2865 | 2866 | failed = False |
|
2866 | 2867 | kws = self.options.keywords |
@@ -2897,7 +2898,7 b' class TestRunner(object):' | |||
|
2897 | 2898 | self._installchg() |
|
2898 | 2899 | |
|
2899 | 2900 | log('running %d tests using %d parallel processes' % ( |
|
2900 |
|
|
|
2901 | num_tests, jobs)) | |
|
2901 | 2902 | |
|
2902 | 2903 | result = runner.run(suite) |
|
2903 | 2904 |
@@ -716,6 +716,12 b' failures in parallel with --first should' | |||
|
716 | 716 | (delete the duplicated test file) |
|
717 | 717 | $ rm test-failure-copy.t |
|
718 | 718 | |
|
719 | multiple runs per test should be parallelized | |
|
720 | ||
|
721 | $ rt --jobs 2 --runs-per-test 2 test-success.t | |
|
722 | running 2 tests using 2 parallel processes | |
|
723 | .. | |
|
724 | # Ran 2 tests, 0 skipped, 0 failed. | |
|
719 | 725 | |
|
720 | 726 | Interactive run |
|
721 | 727 | =============== |
General Comments 0
You need to be logged in to leave comments.
Login now