Skip to content

Commit

Permalink
Change the path for SSL configs in browser_kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
KiChjang committed Nov 24, 2018
1 parent 07e334a commit c4fe0de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/wpt/metadata/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -665395,7 +665395,7 @@
"support"
],
"tools/wptrunner/wptrunner/browsers/servo.py": [
"1a357a3ced93edf8f65b21dde8f04b08849a4669",
"faf907f1d20f47df29ba38b5867f8c5e6f8e6129",
"support"
],
"tools/wptrunner/wptrunner/browsers/servodriver.py": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

from .base import NullBrowser, ExecutorBrowser, require_arg
from ..executors import executor_kwargs as base_executor_kwargs
Expand Down Expand Up @@ -28,12 +29,16 @@ def check_args(**kwargs):


def browser_kwargs(test_type, run_info_data, config, **kwargs):
if sys.platform == 'win32':
ca_cert_path = config.ssl["pregenerated"]["ca_cert_path"]
else:
ca_cert_path = config.ssl_config["ca_cert_path"]
return {
"binary": kwargs["binary"],
"debug_info": kwargs["debug_info"],
"binary_args": kwargs["binary_args"],
"user_stylesheets": kwargs.get("user_stylesheets"),
"ca_certificate_path": config.ssl_config["ca_cert_path"],
"ca_certificate_path": ca_cert_path,
}


Expand Down

0 comments on commit c4fe0de

Please sign in to comment.