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
|
@ -31,10 +31,8 @@ def create_parser():
|
|||
help="Run under chaos mode in rr until a failure is captured")
|
||||
parser.add_argument('--pref', default=[], action="append", dest="prefs",
|
||||
help="Pass preferences to servo")
|
||||
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")
|
||||
parser.add_argument('--log-servojson', action="append", type=mozlog.commandline.log_file,
|
||||
help="Servo's JSON logger of unexpected results")
|
||||
parser.add_argument('--always-succeed', default=False, action="store_true",
|
||||
|
@ -51,16 +49,15 @@ def create_parser():
|
|||
|
||||
|
||||
def update_args_for_legacy_layout(kwargs: dict):
|
||||
if kwargs.pop("layout_2013"):
|
||||
kwargs["test_paths"]["/"]["metadata_path"] = os.path.join(
|
||||
WPT_PATH, "meta-legacy-layout"
|
||||
)
|
||||
kwargs["test_paths"]["/_mozilla/"]["metadata_path"] = os.path.join(
|
||||
WPT_PATH, "mozilla", "meta-legacy-layout"
|
||||
)
|
||||
kwargs["test_paths"]["/_webgl/"]["metadata_path"] = os.path.join(
|
||||
WPT_PATH, "webgl", "meta-legacy-layout"
|
||||
)
|
||||
kwargs["test_paths"]["/"]["metadata_path"] = os.path.join(
|
||||
WPT_PATH, "meta-legacy-layout"
|
||||
)
|
||||
kwargs["test_paths"]["/_mozilla/"]["metadata_path"] = os.path.join(
|
||||
WPT_PATH, "mozilla", "meta-legacy-layout"
|
||||
)
|
||||
kwargs["test_paths"]["/_webgl/"]["metadata_path"] = os.path.join(
|
||||
WPT_PATH, "webgl", "meta-legacy-layout"
|
||||
)
|
||||
|
||||
|
||||
def run_tests():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue