Skip to content

Commit

Permalink
Add --binary-arg support in ./mach test-wpt --product servodriver
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jul 19, 2018
1 parent 9b80369 commit c05d30d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -37,6 +37,7 @@ def check_args(**kwargs):
def browser_kwargs(test_type, run_info_data, **kwargs):
return {
"binary": kwargs["binary"],
"binary_args": kwargs["binary_args"],
"debug_info": kwargs["debug_info"],
"server_config": kwargs["config"],
"user_stylesheets": kwargs.get("user_stylesheets"),
Expand Down Expand Up @@ -74,9 +75,10 @@ class ServoWebDriverBrowser(Browser):
used_ports = set()

def __init__(self, logger, binary, debug_info=None, webdriver_host="127.0.0.1",
server_config=None, user_stylesheets=None):
server_config=None, binary_args=None, user_stylesheets=None):
Browser.__init__(self, logger)
self.binary = binary
self.binary_args = binary_args or []
self.webdriver_host = webdriver_host
self.webdriver_port = None
self.proc = None
Expand All @@ -95,7 +97,7 @@ def start(self, **kwargs):

debug_args, command = browser_command(
self.binary,
[
self.binary_args + [
"--hard-fail",
"--webdriver", str(self.webdriver_port),
"about:blank",
Expand Down

0 comments on commit c05d30d

Please sign in to comment.