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>
This commit is contained in:
Simon Wülker 2025-01-19 04:57:14 +01:00 committed by GitHub
parent 84bf7caaa6
commit 748b0974e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"