mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Let WPT commands take the --legacy-layout argument (#30239)
This also prints a better message when starting tests.
This commit is contained in:
parent
17dec241db
commit
30dbc46d17
7 changed files with 34 additions and 29 deletions
|
@ -110,7 +110,9 @@ def update_tests(**kwargs) -> int:
|
|||
wptcommandline.set_from_config(kwargs)
|
||||
if hasattr(wptcommandline, 'check_paths'):
|
||||
wptcommandline.check_paths(kwargs)
|
||||
update_args_for_legacy_layout(kwargs)
|
||||
|
||||
if kwargs.pop("legacy_layout"):
|
||||
update_args_for_legacy_layout(kwargs)
|
||||
|
||||
if kwargs.get('sync', False):
|
||||
return do_sync(**kwargs)
|
||||
|
@ -126,8 +128,7 @@ def run_update(**kwargs) -> bool:
|
|||
|
||||
def create_parser(**_kwargs):
|
||||
parser = wptcommandline.create_parser_update()
|
||||
parser.add_argument("--layout-2020", "--with-layout-2020", default=True, action="store_true",
|
||||
help="Use expected results for the 2020 layout engine")
|
||||
parser.add_argument("--layout-2013", "--with-layout-2013", default=False, action="store_true",
|
||||
help="Use expected results for the 2013 layout engine")
|
||||
parser.add_argument("--legacy-layout", "--layout-2013", "--with-layout-2013",
|
||||
default=False, action="store_true",
|
||||
help="Use expected results for the legacy layout engine")
|
||||
return parser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue