mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update wptrunner.
This commit is contained in:
parent
92d8f5c552
commit
82e2d017ef
21 changed files with 717 additions and 66 deletions
|
@ -10,6 +10,7 @@ from collections import OrderedDict
|
|||
from distutils.spawn import find_executable
|
||||
|
||||
import config
|
||||
import wpttest
|
||||
|
||||
|
||||
def abs_path(path):
|
||||
|
@ -25,6 +26,7 @@ def url_or_path(path):
|
|||
else:
|
||||
return abs_path(path)
|
||||
|
||||
|
||||
def require_arg(kwargs, name, value_func=None):
|
||||
if value_func is None:
|
||||
value_func = lambda x: x is not None
|
||||
|
@ -101,8 +103,8 @@ def create_parser(product_choices=None):
|
|||
|
||||
test_selection_group = parser.add_argument_group("Test Selection")
|
||||
test_selection_group.add_argument("--test-types", action="store",
|
||||
nargs="*", default=["testharness", "reftest"],
|
||||
choices=["testharness", "reftest"],
|
||||
nargs="*", default=wpttest.enabled_tests,
|
||||
choices=wpttest.enabled_tests,
|
||||
help="Test types to run")
|
||||
test_selection_group.add_argument("--include", action="append",
|
||||
help="URL prefix to include")
|
||||
|
@ -159,8 +161,8 @@ def create_parser(product_choices=None):
|
|||
gecko_group = parser.add_argument_group("Gecko-specific")
|
||||
gecko_group.add_argument("--prefs-root", dest="prefs_root", action="store", type=abs_path,
|
||||
help="Path to the folder containing browser prefs")
|
||||
gecko_group.add_argument("--e10s", dest="gecko_e10s", action="store_true",
|
||||
help="Run tests with electrolysis preferences")
|
||||
gecko_group.add_argument("--disable-e10s", dest="gecko_e10s", action="store_false", default=True,
|
||||
help="Run tests without electrolysis preferences")
|
||||
|
||||
b2g_group = parser.add_argument_group("B2G-specific")
|
||||
b2g_group.add_argument("--b2g-no-backup", action="store_true", default=False,
|
||||
|
@ -343,12 +345,14 @@ def check_args(kwargs):
|
|||
|
||||
return kwargs
|
||||
|
||||
|
||||
def check_args_update(kwargs):
|
||||
set_from_config(kwargs)
|
||||
|
||||
if kwargs["product"] is None:
|
||||
kwargs["product"] = "firefox"
|
||||
|
||||
|
||||
def create_parser_update(product_choices=None):
|
||||
from mozlog.structured import commandline
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue