Switch default layout option to --layout-2020 in some mach commands (#30048)

Currently, `./mach test-wpt` family of commands (`test-wpt`,
`test-wpt-android`, and `test-wpt-failure`) and `./mach update-wpt`
default to using the legacy-layout option `--layout-2013` unless
`--layout-2020` is specified.

Given that we are now using layout-2020 by default, this change updates
these commands to default to using the `--layout-2020` option instead of
`--layout-2013`.
This commit is contained in:
Yutaro Ohno 2023-08-03 04:29:20 +09:00 committed by GitHub
parent d9a38b00ff
commit ad0fa77456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 16 deletions

View file

@ -103,7 +103,7 @@ def run_tests(**kwargs):
kwargs.setdefault("binary_args", [])
if prefs:
kwargs["binary_args"] += ["--pref=" + pref for pref in prefs]
if not kwargs.get("layout_2020", False):
if kwargs.get("layout_2013"):
kwargs["binary_args"] += ["--legacy-layout"]
if not kwargs.get("no_default_test_types"):