Update scripts to reflect new WPT directory name

This commit is contained in:
Martin Robinson 2023-06-24 09:22:18 +02:00
parent 234d507234
commit f017169ae4
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
21 changed files with 39 additions and 45 deletions

View file

@ -17,7 +17,7 @@
import os
test_root = os.path.join('tests', 'wpt', 'web-platform-tests')
test_root = os.path.join('tests', 'wpt', 'tests')
meta_root = os.path.join('tests', 'wpt', 'meta')
missing_dirs = []
@ -37,7 +37,7 @@ for base_dir, dir_names, files in os.walk(meta_root):
missing_dirs += [meta_dir]
continue
# Turn tests/wpt/meta/foo into tests/wpt/web-platform-tests/foo.
# Turn tests/wpt/meta/foo into tests/wpt/tests/foo.
test_dir = os.path.join(test_root, os.path.relpath(meta_dir, meta_root))
if not os.path.exists(test_dir):
missing_dirs += [meta_dir]
@ -48,7 +48,7 @@ for base_dir, dir_names, files in os.walk(meta_root):
if fname in ['__dir__.ini', 'MANIFEST.json', 'mozilla-sync']:
continue
# Turn tests/wpt/meta/foo/bar.html.ini into tests/wpt/web-platform-tests/foo/bar.html.
# Turn tests/wpt/meta/foo/bar.html.ini into tests/wpt/tests/foo/bar.html.
test_dir = os.path.join(test_root, os.path.relpath(base_dir, meta_root))
test_file = os.path.join(test_dir, fname)
if not os.path.exists(os.path.splitext(test_file)[0]):

View file

@ -20,7 +20,7 @@
import os
test_root = os.path.join('tests', 'wpt', 'web-platform-tests')
test_root = os.path.join('tests', 'wpt', 'tests')
meta_root = os.path.join('tests', 'wpt', 'meta')
test_counts = {}