aboutsummaryrefslogtreecommitdiffstats
path: root/python/wpt/run.py
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-08-30 13:46:57 +0200
committerGitHub <noreply@github.com>2023-08-30 11:46:57 +0000
commit30dbc46d170919c900b752ef3a67e463a4ee2a76 (patch)
tree57576ce5328f44a93970c5edc8d2ee9ecac46f74 /python/wpt/run.py
parent17dec241db16876a2cc7ae1b0e494d650e0f40ab (diff)
downloadservo-30dbc46d170919c900b752ef3a67e463a4ee2a76.tar.gz
servo-30dbc46d170919c900b752ef3a67e463a4ee2a76.zip
Let WPT commands take the --legacy-layout argument (#30239)
This also prints a better message when starting tests.
Diffstat (limited to 'python/wpt/run.py')
-rw-r--r--python/wpt/run.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/python/wpt/run.py b/python/wpt/run.py
index 7fec9986c8d..486f4ce744e 100644
--- a/python/wpt/run.py
+++ b/python/wpt/run.py
@@ -39,7 +39,12 @@ def set_if_none(args: dict, key: str, value):
def run_tests(default_binary_path: str, **kwargs):
- print(default_binary_path)
+ legacy_layout = kwargs.pop("legacy_layout")
+ message = f"Running WPT tests with {default_binary_path}"
+ if legacy_layout:
+ message += " (legacy layout)"
+ print(message)
+
# By default, Rayon selects the number of worker threads based on the
# available CPU count. This doesn't work very well when running tests on CI,
# since we run so many Servo processes in parallel. The result is a lot of
@@ -81,8 +86,8 @@ def run_tests(default_binary_path: str, **kwargs):
kwargs.setdefault("binary_args", [])
if prefs:
kwargs["binary_args"] += ["--pref=" + pref for pref in prefs]
- if kwargs.get("layout_2013"):
- kwargs["binary_args"] += ["--legacy-layout"]
+ if legacy_layout:
+ kwargs["binary_args"].append("--legacy-layout")
if not kwargs.get("no_default_test_types"):
test_types = {
@@ -98,7 +103,8 @@ def run_tests(default_binary_path: str, **kwargs):
wptcommandline.check_args(kwargs)
- update_args_for_legacy_layout(kwargs)
+ if legacy_layout:
+ update_args_for_legacy_layout(kwargs)
mozlog.commandline.log_formatters["servo"] = (
ServoFormatter,