mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
wpt sync: adapt code for new TestRoot class
Fixes #30558 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
fdcbe613ac
commit
1fa206945b
3 changed files with 8 additions and 8 deletions
|
@ -51,10 +51,10 @@ def update(check_clean=True, rebuild=False, **kwargs):
|
|||
|
||||
def _update(logger, test_paths, rebuild):
|
||||
for url_base, paths in iteritems(test_paths):
|
||||
manifest_path = os.path.join(paths["metadata_path"], "MANIFEST.json")
|
||||
manifest_path = os.path.join(paths.metadata_path, "MANIFEST.json")
|
||||
cache_subdir = os.path.relpath(os.path.dirname(manifest_path),
|
||||
os.path.dirname(__file__))
|
||||
wptmanifest.manifest.load_and_update(paths["tests_path"],
|
||||
wptmanifest.manifest.load_and_update(paths.tests_path,
|
||||
manifest_path,
|
||||
url_base,
|
||||
working_copy=True,
|
||||
|
@ -68,8 +68,8 @@ def _check_clean(logger, test_paths):
|
|||
manifests_by_path = {}
|
||||
rv = 0
|
||||
for url_base, paths in iteritems(test_paths):
|
||||
tests_path = paths["tests_path"]
|
||||
manifest_path = os.path.join(paths["metadata_path"], "MANIFEST.json")
|
||||
tests_path = paths.tests_path
|
||||
manifest_path = os.path.join(paths.metadata_path, "MANIFEST.json")
|
||||
|
||||
old_manifest = wptmanifest.manifest.load_and_update(tests_path,
|
||||
manifest_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue