Bug 1508593 - Update the manifest before doing a metadata update, r=ato
authorJames Graham <james@hoppipolla.co.uk>
Tue, 20 Nov 2018 11:04:30 +0000
changeset 503628 3f594d61b2cc489ea3e6e7472d9c37c5270c6531
parent 503627 dac051017e70948d01ed9070802af9b227ddcb76
child 503629 2ed75fc212f1d4adf4fa5f9ab0ae886df5438f56
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1508593
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1508593 - Update the manifest before doing a metadata update, r=ato The manifest data is used to determine which tests exist, and what type they are Differential Revision: https://phabricator.services.mozilla.com/D12408
testing/web-platform/mach_commands.py
--- a/testing/web-platform/mach_commands.py
+++ b/testing/web-platform/mach_commands.py
@@ -161,20 +161,29 @@ class WebPlatformTestsRunnerSetup(Mozbui
 
 
 class WebPlatformTestsUpdater(MozbuildObject):
     """Update web platform tests."""
     def setup_logging(self, **kwargs):
         import update
         return update.setup_logging(kwargs, {"mach": sys.stdout})
 
+    def update_manifest(self, logger, **kwargs):
+        import manifestupdate
+        return manifestupdate.run(logger=logger,
+                                  src_root=self.topsrcdir,
+                                  obj_root=self.topobjdir,
+                                  **kwargs)
+
     def run_update(self, logger, **kwargs):
         import update
         from update import updatecommandline
 
+        self.update_manifest(logger, **kwargs)
+
         if kwargs["config"] is None:
             kwargs["config"] = os.path.join(self.topobjdir, '_tests', 'web-platform', 'wptrunner.local.ini')
         if kwargs["product"] is None:
             kwargs["product"] = "firefox"
 
         kwargs["store_state"] = False
 
         kwargs = updatecommandline.check_args(kwargs)