Make the choice of layout runtime setting

Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Martin Robinson 2023-06-28 10:07:08 +02:00
parent f11c6045e3
commit d31cdb682f
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
262 changed files with 1740 additions and 3700 deletions

View file

@ -100,8 +100,11 @@ def run_tests(**kwargs):
# TODO: Delete rr traces from green test runs?
prefs = kwargs.pop("prefs")
kwargs.setdefault("binary_args", [])
if prefs:
kwargs["binary_args"] = ["--pref=" + pref for pref in prefs]
kwargs["binary_args"] += ["--pref=" + pref for pref in prefs]
if not kwargs.get("layout_2020", False):
kwargs["binary_args"] += ["--legacy-layout"]
if not kwargs.get("no_default_test_types"):
test_types = {
@ -116,6 +119,7 @@ def run_tests(**kwargs):
raw_log_outputs = kwargs.get("log_raw", [])
wptcommandline.check_args(kwargs)
update_args_for_legacy_layout(kwargs)
mozlog.commandline.log_formatters["servo"] = (