| 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 |
| 3 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 4 |
|
| 5 |
# This is a template config file for marionette production. |
| 6 |
HG_SHARE_BASE_DIR = "/builds/hg-shared" |
| 7 |
|
| 8 |
# OS Specifics |
| 9 |
DISABLE_SCREEN_SAVER = True |
| 10 |
ADJUST_MOUSE_AND_SCREEN = False |
| 11 |
|
| 12 |
##### |
| 13 |
config = { |
| 14 |
# marionette options |
| 15 |
"marionette_address": "localhost:2828", |
| 16 |
"test_manifest": "unit-tests.toml", |
| 17 |
"vcs_share_base": HG_SHARE_BASE_DIR, |
| 18 |
"default_actions": [ |
| 19 |
"clobber", |
| 20 |
"download-and-extract", |
| 21 |
"create-virtualenv", |
| 22 |
"install", |
| 23 |
"run-tests", |
| 24 |
], |
| 25 |
"tooltool_cache": "/builds/worker/tooltool-cache", |
| 26 |
"suite_definitions": { |
| 27 |
"marionette_desktop": { |
| 28 |
"options": [ |
| 29 |
"-vv", |
| 30 |
"--log-errorsummary=%(error_summary_file)s", |
| 31 |
"--log-html=%(html_report_file)s", |
| 32 |
"--binary=%(binary)s", |
| 33 |
"--address=%(address)s", |
| 34 |
"--symbols-path=%(symbols_path)s", |
| 35 |
], |
| 36 |
"run_filename": "", |
| 37 |
"testsdir": "marionette", |
| 38 |
}, |
| 39 |
"unittest_desktop": { |
| 40 |
"options": [ |
| 41 |
"-vv", |
| 42 |
"--log-errorsummary=%(error_summary_file)s", |
| 43 |
"--log-html=%(html_report_file)s", |
| 44 |
"--binary=%(binary)s", |
| 45 |
"--address=%(address)s", |
| 46 |
"--symbols-path=%(symbols_path)s", |
| 47 |
], |
| 48 |
"run_filename": "", |
| 49 |
"testsdir": "marionette", |
| 50 |
}, |
| 51 |
}, |
| 52 |
"run_cmd_checks_enabled": True, |
| 53 |
"preflight_run_cmd_suites": [ |
| 54 |
# NOTE 'enabled' is only here while we have unconsolidated configs |
| 55 |
{ |
| 56 |
"name": "disable_screen_saver", |
| 57 |
"cmd": ["xset", "s", "off", "s", "reset"], |
| 58 |
"halt_on_failure": False, |
| 59 |
"architectures": ["32bit", "64bit"], |
| 60 |
"enabled": DISABLE_SCREEN_SAVER, |
| 61 |
}, |
| 62 |
{ |
| 63 |
"name": "run mouse & screen adjustment script", |
| 64 |
"cmd": [ |
| 65 |
# when configs are consolidated this python path will only show |
| 66 |
# for windows. |
| 67 |
"python", |
| 68 |
"../scripts/external_tools/mouse_and_screen_resolution.py", |
| 69 |
"--configuration-file", |
| 70 |
"../scripts/external_tools/machine-configuration.json", |
| 71 |
], |
| 72 |
"architectures": ["32bit"], |
| 73 |
"halt_on_failure": True, |
| 74 |
"enabled": ADJUST_MOUSE_AND_SCREEN, |
| 75 |
}, |
| 76 |
], |
| 77 |
"structured_output": True, |
| 78 |
} |