Home | History | Annotate | Download | only in server
      1 # Flag file to indicate the host is an adb tester.
      2 ANDROID_TESTER_FILEFLAG = '/mnt/stateful_partition/.android_tester'
      3 
      4 # Android test environment constants
      5 SL4A_APK = 'sl4a.apk'
      6 SL4A_PACKAGE = 'com.googlecode.android_scripting'
      7 SL4A_ARTIFACT = 'test_zip'
      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'
     60