Bug 1355731 - Use new tooltool wrapper in AWSY jobs. r?chmanchester draft
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 12 Apr 2017 18:01:46 +0900
changeset 562524 665e61bd7b810957d5f1fe5faca1b80a98c6c3e0
parent 562523 6fbbf50aa6398bd2552ff4eb6d7e8c420e5312cd
child 562525 42e87bd4eeb7beb757e78d6c81807a6e0f4c21ff
push id54045
push userbmo:mh+mozilla@glandium.org
push dateFri, 14 Apr 2017 02:38:10 +0000
reviewerschmanchester
bugs1355731
milestone55.0a1
Bug 1355731 - Use new tooltool wrapper in AWSY jobs. r?chmanchester
testing/awsy/mach_commands.py
--- a/testing/awsy/mach_commands.py
+++ b/testing/awsy/mach_commands.py
@@ -100,21 +100,20 @@ class MachCommands(MachCommandBase):
 
         if not kwargs['webRootDir']:
             # Populate the Awsy webroot if not specified by the user.
             manifest_file = os.path.join(self.topsrcdir,
                                          'testing',
                                          'awsy',
                                          'tp5n-pageset.manifest')
             tooltool_args = {"args": [
-                os.path.join(self.topsrcdir, "python/mozbuild/mozbuild/action/tooltool.py"),
-                "--manifest=%s" % manifest_file,
-                "--unpack",
-                "--cache-folder=%s" % os.path.join(self.topsrcdir, "tooltool-cache"),
-                "fetch"
+                os.path.join(self.topsrcdir, "mach"),
+                "artifact", "toolchain", "-v",
+                "--tooltool-manifest=%s" % manifest_file,
+                "--cache-dir=%s" % os.path.join(self.topsrcdir, "tooltool-cache"),
             ]}
 
             self.run_process(cwd=page_load_test_dir, **tooltool_args)
             tp5nzip = os.path.join(page_load_test_dir, 'tp5n.zip')
             tp5nmanifest = os.path.join(page_load_test_dir, 'tp5n', 'tp5n.manifest')
             if not os.path.exists(tp5nmanifest):
                 files = mozfile.extract_zip(tp5nzip, page_load_test_dir)