mirror of
https://github.com/servo/servo.git
synced 2025-07-10 17:03:40 +01:00
Add default paths for WPT tests
This commit is contained in:
parent
0b19a3dbfb
commit
37259d216d
1 changed files with 17 additions and 1 deletions
|
@ -20,7 +20,11 @@ def servo_path(*args):
|
||||||
return os.path.join(servo_root, *args)
|
return os.path.join(servo_root, *args)
|
||||||
|
|
||||||
paths = {"include_manifest": wpt_path("include.ini"),
|
paths = {"include_manifest": wpt_path("include.ini"),
|
||||||
"config": wpt_path("config.ini")}
|
"config": wpt_path("config.ini"),
|
||||||
|
"ca-cert-path": wpt_path("web-platform-tests/tools/certs/cacert.pem"),
|
||||||
|
"host-key-path": wpt_path("web-platform-tests/tools/certs/web-platform.test.key"),
|
||||||
|
"host-cert-path": wpt_path("web-platform-tests/tools/certs/web-platform.test.pem"),
|
||||||
|
}
|
||||||
# Imports
|
# Imports
|
||||||
sys.path.append(wpt_path("web-platform-tests", "tools"))
|
sys.path.append(wpt_path("web-platform-tests", "tools"))
|
||||||
import localpaths # noqa: flake8
|
import localpaths # noqa: flake8
|
||||||
|
@ -74,6 +78,18 @@ def set_defaults(kwargs):
|
||||||
if kwargs["processes"] is None:
|
if kwargs["processes"] is None:
|
||||||
kwargs["processes"] = multiprocessing.cpu_count()
|
kwargs["processes"] = multiprocessing.cpu_count()
|
||||||
|
|
||||||
|
if kwargs["ca_cert_path"] is None:
|
||||||
|
kwargs["ca_cert_path"] = paths["ca-cert-path"]
|
||||||
|
|
||||||
|
if kwargs["host_key_path"] is None:
|
||||||
|
kwargs["host_key_path"] = paths["host-key-path"]
|
||||||
|
|
||||||
|
if kwargs["host_cert_path"] is None:
|
||||||
|
kwargs["host_cert_path"] = paths["host-cert-path"]
|
||||||
|
|
||||||
|
if kwargs["ssl_type"] is None:
|
||||||
|
kwargs["ssl_type"] = "pregenerated"
|
||||||
|
|
||||||
kwargs["user_stylesheets"].append(servo_path("resources", "ahem.css"))
|
kwargs["user_stylesheets"].append(servo_path("resources", "ahem.css"))
|
||||||
|
|
||||||
wptcommandline.check_args(kwargs)
|
wptcommandline.check_args(kwargs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue