Skip to content

Commit 9758add

Browse files
committed
Fix merge
1 parent 14f5830 commit 9758add

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel_testsuite.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ def run(self, result):
111111
# issues.
112112
# multiprocessing.set_start_method('spawn')
113113

114+
# If we are running with --failing-and-slow-first, then the test list has been
115+
# pre-sorted based on previous test run results. Otherwise run the tests in
116+
# reverse alphabetical order.
117+
tests = list(self if self.failing_and_slow_first else self.reversed_tests())
118+
114119
tests = self.get_sorted_tests()
115120
contains_browser_test = any(test.is_browser_test() for test in tests)
116121
use_cores = cap_max_workers_in_pool(min(self.max_cores, len(tests), num_cores()), contains_browser_test)

0 commit comments

Comments
 (0)