| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # This file has been automatically generated. Do not edit! |
| from autotest_lib.client.common_lib import utils, global_config |
| import pipes |
| |
| AUTHOR = 'ARC++ Team' |
| NAME = 'cheets_CTS_P.internal.x86.CtsNetTestCases.ctshardware' |
| ATTRIBUTES = 'suite:arc-cts-hardware' |
| DEPENDENCIES = 'arc, cts_abi_x86' |
| JOB_RETRIES = 1 |
| TEST_TYPE = 'server' |
| TIME = 'MEDIUM' |
| MAX_RESULT_SIZE_KB = 512000 |
| PY_VERSION = 3 |
| DOC = 'Run module CtsNetTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.' |
| |
| def run_TS(machine): |
| host_list = [hosts.create_host(machine)] |
| ssid = utils.get_wireless_ssid(machine['hostname']) |
| wifipass = global_config.global_config.get_config_value('CLIENT', |
| 'wireless_password', default=None) |
| job.run_test( |
| 'cheets_CTS_P', |
| hosts=host_list, |
| iterations=1, |
| tag='internal.x86.CtsNetTestCases.ctshardware', |
| test_name='cheets_CTS_P.internal.x86.CtsNetTestCases.ctshardware', |
| run_template=['run', 'commandAndExit', 'cts', '--include-filter', 'CtsNetTestCases', '--logcat-on-failure', '--dynamic-config-url='], |
| retry_template=['run', 'commandAndExit', 'retry', '--retry', '{session_id}', '--dynamic-config-url='], |
| target_module='CtsNetTestCases', |
| target_plan=None, |
| bundle='x86', |
| uri='LATEST', |
| precondition_commands=['android-sh -c \'setprop ctl.start mdnsd\'', '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=3600) |
| |
| parallel_simple(run_TS, machines) |