Skip to content

Commit

Permalink
webkit: provide port name as run info (#13862)
Browse files Browse the repository at this point in the history
For the WebKit product, include the port name inside the run info, under the
'webkit_port' key. This will come in handy when disabling tests in metadata files
for specific ports.
  • Loading branch information
zdobersek authored and jgraham committed Nov 7, 2018
1 parent 3b72925 commit 9b9cf22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/wptrunner/wptrunner/browsers/webkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"wdspec": "WebKitDriverWdspecExecutor"},
"executor_kwargs": "executor_kwargs",
"env_extras": "env_extras",
"env_options": "env_options"}
"env_options": "env_options",
"run_info_extras": "run_info_extras"}


def check_args(**kwargs):
Expand Down Expand Up @@ -69,6 +70,10 @@ def env_options():
return {}


def run_info_extras(**kwargs):
return {"webkit_port": kwargs["webkit_port"]}


class WebKitBrowser(Browser):
"""Generic WebKit browser is backed by WebKit's WebDriver implementation,
which is supplied through ``wptrunner.webdriver.WebKitDriverServer``.
Expand Down

0 comments on commit 9b9cf22

Please sign in to comment.