Skip to content

Commit f60d9ff

Browse files
authored
Order groups by subsuite and test type (#46816)
As we are trying to not restart browser when there is a test type switch, doing so will require less browser restarts.
1 parent 8f17a89 commit f60d9ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/wptrunner/wptrunner/testloader.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,9 @@ def make_queue(self, tests_by_type: TestsByType) -> Tuple[ReadQueue, int]:
553553
processes = self.process_count(self.kwargs["processes"], len(groups))
554554
if processes > 1:
555555
groups.sort(key=lambda group: (
556-
# Place groups of the same test type together to minimize
557-
# browser restarts.
556+
# Place groups of the same subsuite, test type together to
557+
# minimize browser restarts.
558+
group.subsuite,
558559
group.test_type,
559560
# Next, run larger groups first to avoid straggler runners. Use
560561
# timeout to give slow tests greater relative weight.

0 commit comments

Comments
 (0)