temp change to allow wpt sync build to pass

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
Mukilan Thiyagarajan 2023-10-23 22:13:18 +05:30
parent 1fa206945b
commit bad72c7f87
2 changed files with 23 additions and 5 deletions

View file

@ -109,7 +109,13 @@ def update_tests(**kwargs) -> int:
wptcommandline.set_from_config(kwargs)
if hasattr(wptcommandline, 'check_paths'):
wptcommandline.check_paths(kwargs["test_paths"])
# FIXME(mukilan): temporary hack since check_paths
# is used before and after we sync the wptrunner code
# with upstream and upstream has changed the argument
try:
wptcommandline.check_paths(kwargs)
except AttributeError:
wptcommandline.check_paths(kwargs["test_paths"])
if kwargs.pop("legacy_layout"):
update_args_for_legacy_layout(kwargs)