blob: afadef7f916db90edba5bd21e6debbe3588916fc [file] [log] [blame]
Dan Shia2872172015-10-31 01:16:51 -07001# Flag file to indicate the host is an adb tester.
J. Richard Barnette908b2e42016-03-18 15:46:22 -07002ANDROID_TESTER_FILEFLAG = '/mnt/stateful_partition/.android_tester'
Bindu Mahadev472a5582016-05-20 09:59:07 -07003
4# Android test environment constants
5SL4A_APK = 'sl4a.apk'
6SL4A_PACKAGE = 'com.googlecode.android_scripting'
Benny Peakebdbea872016-12-07 13:18:09 -08007SL4A_ARTIFACT = 'test_zip'
Xixuan Wu93e646c2017-12-07 18:36:10 -08008
9class Labels:
10 """
11 Constants related to label names.
12
13 @var BOARD_PREFIX The string with which board labels are prefixed.
14 @var MODEL_PREFIX The string with which model labels are prefixed.
15 @var POOL_PREFIX The stright with which pool labels are prefixed.
16 """
17 BOARD_PREFIX = 'board:'
18 MODEL_PREFIX = 'model:'
19 POOL_PREFIX = 'pool:'
20
21
22class Pools:
23 """
24 Well-known pool names used in automated inventory management.
25
26 These are general purpose pools of DUTs that are considered
27 identical for purposes of testing. That is, a device in one of
28 these pools can be shifted to another pool at will for purposes
29 of supplying test demand.
30
31 Devices in these pools are not allowed to have special-purpose
32 attachments, or to be part of in any kind of custom fixture.
33 Devices in these pools are also required to reside in areas
34 managed by the Platforms team (i.e. at the time of this writing,
35 only in "Atlantis" or "Destiny").
36
37 CRITICAL_POOLS - Pools that must be kept fully supplied in order
38 to guarantee timely completion of tests from builders.
39 SPARE_POOL - A low priority pool that is allowed to provide
40 spares to replace broken devices in the critical pools.
41 MANAGED_POOLS - The set of all the general purpose pools
42 monitored for health.
43 """
44 CRITICAL_POOLS = ['bvt', 'cq', 'continuous', 'cts', 'arc-presubmit']
45 SPARE_POOL = 'suites'
46 MANAGED_POOLS = CRITICAL_POOLS + [SPARE_POOL]
47
48
49class Builds:
50 """
51 Constants related to build type.
52
53 @var FIRMWARE_RW: The string indicating the given build is used to update
54 RW firmware.
55 @var CROS: The string indicating the given build is used to update ChromeOS.
56 """
57 FIRMWARE_RW = 'firmware_rw'
58 FIRMWARE_RO = 'firmware_ro'
59 CROS = 'cros'