mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add a friendly and easy-to-read UI for WPT tests
The idea is that this UI will be installed adhoc by the Servo scripts for now. Later, after baking for a while in the Servo source tree it will be upstreamed to the mozlog project itself.
This commit is contained in:
parent
94aa8ca80a
commit
248cd768e6
2 changed files with 248 additions and 1 deletions
|
@ -6,6 +6,8 @@ import argparse
|
|||
import multiprocessing
|
||||
import os
|
||||
import sys
|
||||
import mozlog
|
||||
import grouping_formatter
|
||||
|
||||
here = os.path.split(__file__)[0]
|
||||
servo_root = os.path.abspath(os.path.join(here, "..", ".."))
|
||||
|
@ -24,7 +26,11 @@ def run_tests(paths=None, **kwargs):
|
|||
if paths is None:
|
||||
paths = {}
|
||||
set_defaults(paths, kwargs)
|
||||
wptrunner.setup_logging(kwargs, {"mach": sys.stdout})
|
||||
|
||||
mozlog.commandline.log_formatters["servo"] = \
|
||||
(grouping_formatter.GroupingFormatter, "A grouping output formatter")
|
||||
wptrunner.setup_logging(kwargs, {"servo": sys.stdout})
|
||||
|
||||
success = wptrunner.run_tests(**kwargs)
|
||||
return 0 if success else 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue