mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #27230 - servo:jdm-patch-46, r=jgraham
Add missing test path for manifest during WPT syncing. Fixes #27223.
This commit is contained in:
commit
56a4cfdfa4
2 changed files with 7 additions and 14 deletions
|
@ -355728,7 +355728,7 @@
|
|||
[]
|
||||
],
|
||||
"sync.py": [
|
||||
"0a41f706ebc3760729d9ba553076fe0d7e0b40b8",
|
||||
"c3da2098d3c55dd5a79fa662a112335a03fcaa33",
|
||||
[]
|
||||
],
|
||||
"tree.py": [
|
||||
|
|
|
@ -92,24 +92,18 @@ class GetSyncTargetCommit(Step):
|
|||
self.logger.debug("New base commit is %s" % state.sync_commit.sha1)
|
||||
|
||||
|
||||
class LoadManifest(Step):
|
||||
"""Load the test manifest"""
|
||||
class UpdateManifest(Step):
|
||||
"""Update the manifest to match the tests in the sync tree checkout"""
|
||||
|
||||
provides = ["manifest_path", "test_manifest"]
|
||||
|
||||
def create(self, state):
|
||||
from manifest import manifest
|
||||
state.manifest_path = os.path.join(state.metadata_path, "MANIFEST.json")
|
||||
state.test_manifest = manifest.Manifest("/")
|
||||
|
||||
|
||||
class UpdateManifest(Step):
|
||||
"""Update the manifest to match the tests in the sync tree checkout"""
|
||||
|
||||
def create(self, state):
|
||||
from manifest import manifest, update
|
||||
update.update(state.sync["path"], state.test_manifest)
|
||||
manifest.write(state.test_manifest, state.manifest_path)
|
||||
state.test_manifest = manifest.load_and_update(state.sync["path"],
|
||||
state.manifest_path,
|
||||
"/",
|
||||
write_manifest=True)
|
||||
|
||||
|
||||
class CopyWorkTree(Step):
|
||||
|
@ -149,7 +143,6 @@ class SyncFromUpstreamRunner(StepRunner):
|
|||
"""(Sub)Runner for doing an upstream sync"""
|
||||
steps = [UpdateCheckout,
|
||||
GetSyncTargetCommit,
|
||||
LoadManifest,
|
||||
UpdateManifest,
|
||||
CopyWorkTree,
|
||||
CreateSyncPatch]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue