Rename metadata directories

This renames:
 - `tests/wpt/metadata` → `tests/wpt/meta-legacy-layout`
 - `tests/wpt/metadata-layout-2020` → `tests/wpt/meta`
 - `tests/wpt/mozilla/meta` → `tests/wpt/mozilla/meta-legacy-layout`
 - `tests/wpt/mozilla/meta-layout-2020` → `tests/wpt/mozilla/meta`
This commit is contained in:
Martin Robinson 2023-06-22 14:35:02 +02:00
parent cfd24f00bc
commit f4578afdfe
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
23708 changed files with 772645 additions and 694 deletions

View file

@ -86,7 +86,7 @@ function unsafe_update_metadata() {
# Hope that any test result changes from layout-2013 are also applicable to layout-2020.
./mach update-wpt --layout-2020 "${1}" "${2}" "${3}" || return 2
# Ensure any new directories or ini files are included in these changes.
git add tests/wpt/metadata tests/wpt/metadata-layout-2020 tests/wpt/mozilla/meta || return 3
git add tests/wpt/meta tests/wpt/metadata-legacy-layout tests/wpt/mozilla/meta tests/wpt/mozilla/meta-legacy-layout || return 3
# Merge all changes with the existing commit.
git commit -a --amend --no-edit || return 3
}

View file

@ -17,9 +17,10 @@ function unsafe_update_metadata_chunk() {
"wpt-logs-linux-layout-2020/test-wpt.${1}.log" || return 2
# Ensure any new directories or ini files are included in these changes.
git add tests/wpt/metadata \
tests/wpt/metadata-layout-2020 \
tests/wpt/mozilla/meta || return 3
git add tests/wpt/meta \
tests/wpt/meta-legacy-layout \
tests/wpt/mozilla/meta \
tests/wpt/mozilla/meta-legacy-layout || return 3
# Merge all changes with the existing commit.
git commit -a --amend --no-edit || return 3

View file

@ -18,7 +18,7 @@
import os
test_root = os.path.join('tests', 'wpt', 'web-platform-tests')
meta_root = os.path.join('tests', 'wpt', 'metadata')
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/metadata/foo into tests/wpt/web-platform-tests/foo.
# Turn tests/wpt/meta/foo into tests/wpt/web-platform-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/metadata/foo/bar.html.ini into tests/wpt/web-platform-tests/foo/bar.html.
# Turn tests/wpt/meta/foo/bar.html.ini into tests/wpt/web-platform-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

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