Auto merge of #18505 - mrobinson:test-count, r=jgraham

Fix the test count in the WPT formatter

This was broken by a change in the test harness.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because this just fixes an issue in the test formatter.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18505)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-09-14 23:32:40 -05:00 committed by GitHub
commit 1677a2b34c

View file

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