mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fixed mach/servo logger choice for single files
This commit is contained in:
parent
b5c94bad37
commit
a2fe2e6095
1 changed files with 6 additions and 0 deletions
|
@ -32,7 +32,13 @@ def run_tests(paths=None, **kwargs):
|
||||||
mozlog.commandline.log_formatters["servo"] = \
|
mozlog.commandline.log_formatters["servo"] = \
|
||||||
(grouping_formatter.GroupingFormatter, "A grouping output formatter")
|
(grouping_formatter.GroupingFormatter, "A grouping output formatter")
|
||||||
|
|
||||||
|
use_mach_logging = False
|
||||||
if len(kwargs["test_list"]) == 1:
|
if len(kwargs["test_list"]) == 1:
|
||||||
|
file_ext = os.path.splitext(kwargs["test_list"][0])[1].lower()
|
||||||
|
if file_ext in [".htm", ".html", ".js", ".xhtml"]:
|
||||||
|
use_mach_logging = True
|
||||||
|
|
||||||
|
if use_mach_logging:
|
||||||
wptrunner.setup_logging(kwargs, {"mach": sys.stdout})
|
wptrunner.setup_logging(kwargs, {"mach": sys.stdout})
|
||||||
else:
|
else:
|
||||||
wptrunner.setup_logging(kwargs, {"servo": sys.stdout})
|
wptrunner.setup_logging(kwargs, {"servo": sys.stdout})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue