aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-06-24 09:22:18 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-06-26 10:48:02 +0200
commitf017169ae482effc446384050e79b752bd9ddfe5 (patch)
tree90bc38a792825b615100f112e14838523ccb7577 /python/tidy
parent234d50723463159400ee4bf25fa130011e9f72ef (diff)
downloadservo-f017169ae482effc446384050e79b752bd9ddfe5.tar.gz
servo-f017169ae482effc446384050e79b752bd9ddfe5.zip
Update scripts to reflect new WPT directory name
Diffstat (limited to 'python/tidy')
-rw-r--r--python/tidy/tidy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/tidy/tidy.py b/python/tidy/tidy.py
index e0d09f4a7ea..45e4260ab13 100644
--- a/python/tidy/tidy.py
+++ b/python/tidy/tidy.py
@@ -25,7 +25,7 @@ from .licenseck import OLD_MPL, MPL, APACHE, COPYRIGHT, licenses_toml, licenses_
TOPDIR = os.path.abspath(os.path.dirname(sys.argv[0]))
WPT_PATH = os.path.join(".", "tests", "wpt")
-SUITES = ["web-platform-tests", os.path.join("mozilla", "tests")]
+SUITES = ["tests", os.path.join("mozilla", "tests")]
def wpt_path(*args):
@@ -40,7 +40,7 @@ URL_REGEX = re.compile(br'https?://(?:[-\w.]|(?:%[\da-fA-F]{2}))+')
# Import wptmanifest only when we do have wpt in tree, i.e. we're not
# inside a Firefox checkout.
if os.path.isfile(WPT_MANIFEST_PATH):
- sys.path.append(wpt_path("web-platform-tests", "tools", "wptrunner", "wptrunner"))
+ sys.path.append(wpt_path("tests", "tools", "wptrunner", "wptrunner"))
from wptmanifest import parser, node
# Default configs
@@ -506,7 +506,7 @@ def check_manifest_dirs(config_file, print_text=True):
print('\rChecking the wpt manifest file...')
p = parser.parse(lines)
- paths = rec_parse(wpt_path("web-platform-tests"), p)
+ paths = rec_parse(wpt_path("tests"), p)
for idx, path in enumerate(paths):
if '_mozilla' in path or '_webgl' in path or '_webgpu' in path:
continue
@@ -1152,7 +1152,7 @@ class WPTLint(LintRunner):
if self.stylo or self.no_wpt:
return
- wpt_working_dir = os.path.abspath(os.path.join(WPT_PATH, "web-platform-tests"))
+ wpt_working_dir = os.path.abspath(os.path.join(WPT_PATH, "tests"))
for suite in SUITES:
files = list(self._get_wpt_files(suite))
if not files: