• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# TODO Integrate these changes back into cts_N as soon as partners have a
6# chance to configure their DUT's correctly and documentation is complete.
7
8AUTHOR = 'ARC++ Team'
9NAME = 'cheets_CTS_N.x86.CtsNetTestCasesPreconditions'
10ATTRIBUTES = 'suite:cts_N_Pre'
11DEPENDENCIES = 'arc, cts_abi_x86'
12JOB_RETRIES = 2
13TEST_TYPE = 'server'
14TIME = 'LENGTHY'
15
16DOC = ('Run module CtsNetTestCases of the '
17       'Android 7.1_r6 Compatibility Test Suite (CTS), build 4009365,'
18       'using x86 ABI in the ARC++ container.')
19
20if not ssid:
21  ssid = 'GoogleGuest'
22
23if not wifipass:
24  wifipass = ''
25
26def run_CTS(machine):
27    host = hosts.create_host(machine)
28    job.run_test(
29        'cheets_CTS_N',
30        host=host,
31        iterations=1,
32        max_retry=3,
33        needs_push_media=False,
34        tag='CtsNetTestCases',
35        target_module='CtsNetTestCases',
36        bundle='x86',
37        warn_on_test_retry=False,
38        timeout=3600,
39        pre_condition_commands=[
40           '/usr/local/autotest/cros/scripts/wifi connect %s %s' % (ssid, wifipass),
41           '/usr/local/autotest/cros/scripts/reorder-services-moblab.sh wifi',
42        ])
43
44parallel_simple(run_CTS, machines)
45