Dan Shi | a287217 | 2015-10-31 01:16:51 -0700 | [diff] [blame] | 1 | # Flag file to indicate the host is an adb tester. |
J. Richard Barnette | 908b2e4 | 2016-03-18 15:46:22 -0700 | [diff] [blame] | 2 | ANDROID_TESTER_FILEFLAG = '/mnt/stateful_partition/.android_tester' |
Bindu Mahadev | 472a558 | 2016-05-20 09:59:07 -0700 | [diff] [blame] | 3 | |
| 4 | # Android test environment constants |
| 5 | SL4A_APK = 'sl4a.apk' |
| 6 | SL4A_PACKAGE = 'com.googlecode.android_scripting' |
Benny Peake | bdbea87 | 2016-12-07 13:18:09 -0800 | [diff] [blame] | 7 | SL4A_ARTIFACT = 'test_zip' |
Xixuan Wu | 93e646c | 2017-12-07 18:36:10 -0800 | [diff] [blame] | 8 | |
| 9 | class 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 | |
| 22 | class 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 | |
| 49 | class 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' |