From 4e9dfe3ec24f94bb449f8e03f1d5323af692b821 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 23 Oct 2017 13:04:24 +0200 Subject: [PATCH] Fix the test count in grouping formatter Now that the WPT update has settled a bit, it seems safe to make sure that the grouping_formatter properly consumes the data structure provided. --- tests/wpt/grouping_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wpt/grouping_formatter.py b/tests/wpt/grouping_formatter.py index a02714b7068..48bbd2532bd 100644 --- a/tests/wpt/grouping_formatter.py +++ b/tests/wpt/grouping_formatter.py @@ -105,7 +105,7 @@ class GroupingFormatter(base.BaseFormatter): return new_display + "No tests running.\n" def suite_start(self, data): - self.number_of_tests = len(data["tests"]) + self.number_of_tests = sum(len(tests) for tests in data["tests"].itervalues()) self.start_time = data["time"] if self.number_of_tests == 0: