Bug 1368264 - Have mach pick up geckodriver from dist/bin draft
authorAndreas Tolfsen <ato@mozilla.com>
Mon, 05 Jun 2017 11:30:59 +0100
changeset 589810 858b85233a4e63fdbe00c1ef00c5aa560358f104
parent 589809 ad6006e63e66d31c0943373d472a61e57942fea8
child 589811 6038dbfd00100693aea880682567b33218164ddf
push id62529
push userbmo:ato@mozilla.com
push dateTue, 06 Jun 2017 22:05:21 +0000
bugs1368264
milestone55.0a1
Bug 1368264 - Have mach pick up geckodriver from dist/bin MozReview-Commit-ID: Fs9F6o7jNDP
testing/web-platform/mach_commands.py
--- a/testing/web-platform/mach_commands.py
+++ b/testing/web-platform/mach_commands.py
@@ -60,16 +60,19 @@ class WebPlatformTestsRunner(MozbuildObj
             if kwargs["host_key_path"] is None:
                 kwargs["host_key_path"] = os.path.join(here, "certs", "web-platform.test.key")
 
             if kwargs["host_cert_path"] is None:
                 kwargs["host_cert_path"] = os.path.join(here, "certs", "web-platform.test.pem")
 
         kwargs["capture_stdio"] = True
 
+        if kwargs["webdriver_binary"] is None:
+            kwargs["webdriver_binary"] = self.get_binary_path("geckodriver")
+
         kwargs = wptcommandline.check_args(kwargs)
 
     def setup_kwargs_wptrun(self, kwargs):
         from wptrunner import wptcommandline
         here = os.path.join(self.topsrcdir, 'testing', 'web-platform')
 
         sys.path.insert(0, os.path.join(here, "tests", "tools"))