From 748b0974e51904c53dc694027746f55f69618391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Sun, 19 Jan 2025 04:57:14 +0100 Subject: [PATCH] Correctly report number of expected test results from ./mach test-wpt (#35068) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous code was simply reporting the number of categories, instead of the sum of the number of expected tests in each category. Signed-off-by: Simon Wülker --- python/wpt/grouping_formatter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/wpt/grouping_formatter.py b/python/wpt/grouping_formatter.py index 231c5b2c9e6..376ddce0804 100644 --- a/python/wpt/grouping_formatter.py +++ b/python/wpt/grouping_formatter.py @@ -327,7 +327,10 @@ class ServoFormatter(mozlog.formatters.base.BaseFormatter, ServoHandler): output += u"Ran %i tests finished in %.1f seconds.\n" % ( self.completed_tests, (data["time"] - self.suite_start_time) / 1000) - output += f" \u2022 {len(self.expected.values())} ran as expected.\n" + + # Sum the number of expected test results from each category + expected_test_results = sum(self.expected.values()) + output += f" \u2022 {expected_test_results} ran as expected.\n" if self.number_skipped: output += f" \u2022 {self.number_skipped} skipped.\n"