Debian Codegraph @

testing/mozharness/configs/web_platform_tests/prod_config.py

raw
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 import os
6
7 # OS Specifics
8 DISABLE_SCREEN_SAVER = True
9 ADJUST_MOUSE_AND_SCREEN = False
10 #####
11
12 config = {
13 "options": [
14 "--prefs-root=%(test_path)s/prefs",
15 "--config=%(test_path)s/wptrunner.ini",
16 "--ca-cert-path=%(test_path)s/tests/tools/certs/cacert.pem",
17 "--host-key-path=%(test_path)s/tests/tools/certs/web-platform.test.key",
18 "--host-cert-path=%(test_path)s/tests/tools/certs/web-platform.test.pem",
19 "--certutil-binary=%(test_install_path)s/bin/certutil",
20 ],
21 "geckodriver": os.path.join("%(abs_fetches_dir)s", "geckodriver"),
22 "per_test_category": "web-platform",
23 "run_cmd_checks_enabled": True,
24 "preflight_run_cmd_suites": [
25 # NOTE 'enabled' is only here while we have unconsolidated configs
26 {
27 "name": "disable_screen_saver",
28 "cmd": ["xset", "s", "off", "s", "reset"],
29 "halt_on_failure": False,
30 "architectures": ["32bit", "64bit"],
31 "enabled": DISABLE_SCREEN_SAVER,
32 },
33 {
34 "name": "run mouse & screen adjustment script",
35 "cmd": [
36 # when configs are consolidated this python path will only show
37 # for windows.
38 "python",
39 "../scripts/external_tools/mouse_and_screen_resolution.py",
40 "--configuration-file",
41 "../scripts/external_tools/machine-configuration.json",
42 ],
43 "architectures": ["32bit"],
44 "halt_on_failure": True,
45 "enabled": ADJUST_MOUSE_AND_SCREEN,
46 },
47 ],
48 }