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