1# Lint as: python2, python3 2# Copyright 2018 The Chromium OS Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6# TODO(ihf): Find a good aapt and update to it. 7SDK_TOOLS_DIR = 'gs://chromeos-arc-images/builds/git_nyc-mr1-arc-linux-static_sdk_tools/3544738' 8SDK_TOOLS_FILES = ['aapt'] 9 10# Use old version of adb for a speculative workaround for b/183438202 11ADB_DIR_OLD = 'gs://chromeos-arc-images/builds/git_qt-release-static_sdk_tools/6118618' 12# adb 31.0.0 from https://developer.android.com/studio/releases/platform-tools 13ADB_DIR = 'gs://chromeos-arc-images/builds/aosp-sdk-release/7110759/' 14ADB_FILES = ['adb'] 15 16ADB_POLLING_INTERVAL_SECONDS = 1 17ADB_CONNECT_TIMEOUT_SECONDS = 10 18ADB_KILL_SERVER_TIMEOUT_SECONDS = 10 19ADB_READY_TIMEOUT_SECONDS = 30 20ADB_PUSH_MEDIASTRESS_TIMEOUT_SECONDS = 600 21 22ARC_POLLING_INTERVAL_SECONDS = 1 23ARC_READY_TIMEOUT_SECONDS = 60 24 25TRADEFED_PREFIX = 'autotest-tradefed-install_' 26# While running CTS tradefed creates state in the installed location (there is 27# currently no way to specify a dedicated result directory for all changes). 28# For this reason we start each test with a clean copy of the CTS/GTS bundle. 29TRADEFED_CACHE_LOCAL = '/tmp/autotest-tradefed-cache' 30# On lab servers and moblab all server tests run inside of lxc instances 31# isolating file systems from each other. To avoid downloading CTS artifacts 32# repeatedly for each test (or lxc instance) we share a common location 33# /usr/local/autotest/results/shared which is visible to all lxc instances on 34# that server. It needs to be writable as the cache is maintained jointly by 35# all CTS/GTS tests. Currently both read and write access require taking the 36# lock. Writes happen rougly monthly while reads are many times a day. If this 37# becomes a bottleneck we could examine allowing concurrent reads. 38TRADEFED_CACHE_CONTAINER = '/usr/local/autotest/results/shared/cache' 39TRADEFED_CACHE_CONTAINER_LOCK = '/usr/local/autotest/results/shared/lock' 40# The maximum size of the shared global cache. It needs to be able to hold 41# P, R, x86, arm, official, dev CTS bundles, as well as GTS bundles, and 42# media assets. (See b/126165348#comment40 for the calculation.) 43# In the current implementation, each test instance just symlinks to the 44# shared cache for majority of the content, so running multiple parallel 45# CTS tests should be acceptable in terms of storage. 46TRADEFED_CACHE_MAX_SIZE = (100 * 1024 * 1024 * 1024) 47# The path that cts-tradefed uses to place media assets. By downloading and 48# expanding the archive here beforehand, tradefed can reuse the content. 49TRADEFED_MEDIA_PATH = '/tmp/android-cts-media' 50# The property tradefed reads to decide which helpers to install. 51TRADEFED_CTS_HELPERS_PROPERTY = 'ro.vendor.cts_interaction_helper_packages' 52# The directory on the board where CTS helpers can be found. 53BOARD_CTS_HELPERS_DIR = '/usr/local/opt/google/vms/android' 54 55# It looks like the GCE builder can be very slow and login on VMs take much 56# longer than on hardware or bare metal. 57LOGIN_BOARD_TIMEOUT = {'betty': 300, 'betty-arcnext': 300, 'betty-pi-arc': 300} 58LOGIN_DEFAULT_TIMEOUT = 90 59 60# List of boards that we want to run CTS in tablet mode for some models. 61TABLET_MODE_BOARDS = ('kukui', 'nocturne', 'scarlet') 62 63# Approximately assume ChromeOS revision Rdd-xxxxx.y.z with y>=45 as stable. 64APPROXIMATE_STABLE_BRANCH_NUMBER = 45 65 66# Directories for overriding powerd prefs during tests. 67POWERD_PREF_DIR = '/var/lib/power_manager' 68POWERD_TEMP_DIR = '/tmp/autotest_powerd_prefs' 69 70PRIVATE_KEY = '''-----BEGIN PRIVATE KEY----- 71MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCnHNzujonYRLoI 72F2pyJX1SSrqmiT/3rTRCP1X0pj1V/sPGwgvIr+3QjZehLUGRQL0wneBNXd6EVrST 73drO4cOPwSxRJjCf+/PtS1nwkz+o/BGn5yhNppdSro7aPoQxEVM8qLtN5Ke9tx/zE 74ggxpF8D3XBC6Los9lAkyesZI6xqXESeofOYu3Hndzfbz8rAjC0X+p6Sx561Bt1dn 75T7k2cP0mwWfITjW8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