mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
84bf7caaa6
commit
748b0974e5
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue