Make arguments of run-benchmark more user friendly
[WebKit-https.git] / Tools / Scripts / webkitpy / benchmark_runner / browser_driver / osx_chrome_driver.py
index 266319a98644b0d6040501beec363ab868389f56..878b14071f58b8168b31940b1f04bc1f909e26e9 100644 (file)
@@ -19,7 +19,9 @@ class OSXChromeDriver(BrowserDriver):
         self.closeBrowsers()
         self.chromePreferences = []
 
-    def launchUrl(self, url, browserBuildPath=None):
+    def launchUrl(self, url, browserBuildPath):
+        if not browserBuildPath:
+            browserBuildPath = '/Applications/'
         _log.info('Launching chrome: %s with url: %s' % (os.path.join(browserBuildPath, 'Google Chrome.app'), url))
         # FIXME: May need to be modified for develop build, such as setting up libraries
         subprocess.Popen(['open', '-a', os.path.join(browserBuildPath, 'Google Chrome.app'), '--args', '--homepage', url] + self.chromePreferences).communicate()