aboutsummaryrefslogtreecommitdiffstats
path: root/python/wpt/grouping_formatter.py
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2025-01-19 04:57:14 +0100
committerGitHub <noreply@github.com>2025-01-19 03:57:14 +0000
commit748b0974e51904c53dc694027746f55f69618391 (patch)
treed0b71fe92f6fb2bc7ee6cb4130bb17764cf90efa /python/wpt/grouping_formatter.py
parent84bf7caaa6b6ce11d0f4e65406ab304c0d588dbd (diff)
downloadservo-748b0974e51904c53dc694027746f55f69618391.tar.gz
servo-748b0974e51904c53dc694027746f55f69618391.zip
Correctly report number of expected test results from ./mach test-wpt (#35068)
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 <simon.wuelker@arcor.de>
Diffstat (limited to 'python/wpt/grouping_formatter.py')
-rw-r--r--python/wpt/grouping_formatter.py5
1 files changed, 4 insertions, 1 deletions
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"