This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
/
options.py
74 lines (69 loc) · 2.11 KB
/
options.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# command line options
CLEAR_CACHE = 'clear_cache'
IPADDR = 'ipaddr'
PORT = 'port'
USB_NETWORK = 'usb_network'
USB_GATEWAY = 'usb_gateway'
CACHEFILE = 'cachefile'
LOGFILE = 'logfile'
LOGLEVEL = 'loglevel'
TEST_PATH = 'test_path'
EMAILCFG = 'emailcfg'
ENABLE_PULSE = 'enable_pulse'
ENABLE_UNITTESTS = 'enable_unittests'
CACHE_DIR = 'cache_dir'
OVERRIDE_BUILD_DIR = 'override_build_dir'
REPOS = 'repos'
BUILDTYPES = 'buildtypes'
BUILD_CACHE_PORT = 'build_cache_port'
# ini file internal options
USB_IP = 'usb_ip'
BUILD_CACHE_SIZE = 'build_cache_size'
BUILD_CACHE_EXPIRES = 'build_cache_expires'
DEVICEMANAGER_RETRY_LIMIT = 'devicemanager_retry_limit'
DEVICEMANAGER_SETTLING_TIME = 'devicemanager_settling_time'
PHONE_RETRY_LIMIT = 'phone_retry_limit'
PHONE_RETRY_WAIT = 'phone_retry_wait'
PHONE_MAX_REBOOTS = 'phone_max_reboots'
PHONE_PING_INTERVAL = 'phone_ping_interval'
PHONE_COMMAND_QUEUE_TIMEOUT = 'phone_command_queue_timeout'
PHONE_CRASH_WINDOW = 'phone_crash_window'
PHONE_CRASH_LIMIT = 'phone_crash_limit'
# application command line options
CMD_OPTION_NAMES = {
CLEAR_CACHE: 'getboolean',
IPADDR: 'get',
PORT: 'getint',
USB_NETWORK: 'get',
USB_GATEWAY: 'get',
CACHEFILE: 'get',
LOGFILE: 'get',
LOGLEVEL: 'get',
TEST_PATH: 'get',
EMAILCFG: 'get',
ENABLE_PULSE: 'getboolean',
ENABLE_UNITTESTS: 'getboolean',
CACHE_DIR: 'get',
OVERRIDE_BUILD_DIR: 'get',
REPOS: 'get',
BUILDTYPES: 'get',
BUILD_CACHE_PORT: 'getint'
}
# application configuration settings.
INI_OPTION_NAMES = {
USB_IP: 'get',
BUILD_CACHE_SIZE: 'getint',
BUILD_CACHE_EXPIRES: 'getint',
DEVICEMANAGER_RETRY_LIMIT: 'getint',
DEVICEMANAGER_SETTLING_TIME: 'getint',
PHONE_RETRY_LIMIT: 'getint',
PHONE_RETRY_WAIT: 'getint',
PHONE_MAX_REBOOTS: 'getint',
PHONE_PING_INTERVAL: 'getint',
PHONE_COMMAND_QUEUE_TIMEOUT: 'getint',
PHONE_CRASH_WINDOW: 'getint',
PHONE_CRASH_LIMIT: 'getint'
}