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.
This commit is contained in:
Martin Robinson 2017-10-23 13:04:24 +02:00
parent a296e386af
commit 4e9dfe3ec2

View file

@ -105,7 +105,7 @@ class GroupingFormatter(base.BaseFormatter):
return new_display + "No tests running.\n" return new_display + "No tests running.\n"
def suite_start(self, data): 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"] self.start_time = data["time"]
if self.number_of_tests == 0: if self.number_of_tests == 0: