blob: ab213a7471a84599590a719b20f91bddeaba31ea [file] [log] [blame]
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# __GENERATED_BY_GENERATE_CONTROLFILES_PY__:DEV
# This file has been automatically generated. Do not edit!
from autotest_lib.server.cros.tradefed import wifi_utils
import pipes
AUTHOR = 'n/a'
NAME = 'cheets_CTS_R.internal.arm.CtsUsageStats'
METADATA = {
"contacts": ["arc-cts-eng@google.com"],
"bug_component": "b:183644",
"criteria": "A part of Android CTS",
}
ATTRIBUTES = 'suite:arc-cts-vm, suite:arc-cts-vm-stable, suite:arc-cts-vm-stable-arm-20'
DEPENDENCIES = 'arc'
HW_DEPS = ['android-container-rvc','android-vm-rvc']
JOB_RETRIES = 1
TEST_TYPE = 'server'
TIME = 'MEDIUM'
MAX_RESULT_SIZE_KB = 512000
DOC = 'n/a'
def run_TS(machine):
host_list = [hosts.create_host(machine)]
ssid, wifipass = wifi_utils.get_wifi_ssid_pass(machine['hostname'])
job.run_test(
'cheets_CTS_R',
hosts=host_list,
iterations=1,
tag='internal.arm.CtsUsageStats',
test_name='cheets_CTS_R.internal.arm.CtsUsageStats',
run_template=['run', 'commandAndExit', 'cts', '--include-filter', 'CtsUsageStatsTestCases', '--include-filter', 'CtsUsageStatsTestCases[instant]', '--include-filter', 'CtsUsageStatsTestCases[secondary_user]', '--logcat-on-failure'],
retry_template=['run', 'commandAndExit', 'retry', '--retry', '{session_id}'],
target_module='CtsUsageStats',
target_plan=None,
bundle='arm',
uri='DEV',
precondition_commands=['adb shell cmd wifi add-network %s %s %s' % (pipes.quote(ssid), 'open' if wifipass == '' else 'wpa', pipes.quote(wifipass)), 'adb shell cmd wifi connect-network %s' % pipes.quote(ssid), 'adb shell dumpsys wifi transports -eth'],
timeout=7200)
parallel_simple(run_TS, machines)