mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Upgrade wptrunner (tests/wpt/harness) to latest version
This commit is contained in:
parent
5478c7c24b
commit
759c52d7eb
28 changed files with 164 additions and 146 deletions
|
@ -124,24 +124,23 @@ class GetSyncTargetCommit(Step):
|
|||
class LoadManifest(Step):
|
||||
"""Load the test manifest"""
|
||||
|
||||
provides = ["test_manifest"]
|
||||
provides = ["manifest_path", "test_manifest", "old_manifest"]
|
||||
|
||||
def create(self, state):
|
||||
state.test_manifest = testloader.ManifestLoader(state.tests_path).load_manifest(
|
||||
state.tests_path, state.metadata_path,
|
||||
)
|
||||
from manifest import manifest
|
||||
state.manifest_path = os.path.join(state.metadata_path, "MANIFEST.json")
|
||||
# Conservatively always rebuild the manifest when doing a sync
|
||||
state.old_manifest = manifest.load(state.tests_path, state.manifest_path)
|
||||
state.test_manifest = manifest.Manifest(None, "/")
|
||||
|
||||
|
||||
class UpdateManifest(Step):
|
||||
"""Update the manifest to match the tests in the sync tree checkout"""
|
||||
|
||||
provides = ["initial_rev"]
|
||||
def create(self, state):
|
||||
from manifest import manifest, update
|
||||
test_manifest = state.test_manifest
|
||||
state.initial_rev = test_manifest.rev
|
||||
update.update(state.sync["path"], "/", test_manifest)
|
||||
manifest.write(test_manifest, os.path.join(state.metadata_path, "MANIFEST.json"))
|
||||
update.update(state.sync["path"], "/", state.test_manifest)
|
||||
manifest.write(state.test_manifest, state.manifest_path)
|
||||
|
||||
|
||||
class CopyWorkTree(Step):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue