wpt: Make WPT result formatting logic independent of ServoHandler

This will allow results to be formatted by other parts of the code (such
as the intermittent filtering) code. Previously, formatting was handled
in ServoHandler, which was a bit strange as it's really only necessary
for GroupingFormatter and the intermittent filtering code. This also
allows the results to be properly typed by the Python typing system.
This commit is contained in:
Martin Robinson 2023-02-01 17:42:43 +01:00
parent 69b272b4e1
commit 3543fd27f0
3 changed files with 134 additions and 111 deletions

View file

@ -8,6 +8,7 @@ mozinfo == 1.2.1
mozlog == 7.1.0
setuptools == 65.5.1
toml == 0.9.2
dataclasses == 0.8; python_version < "3.7"
# For Python linting
flake8 == 3.8.3