Home | History | Annotate | Download | only in cheets_CTS_N
      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 
      8 AUTHOR = 'ARC++ Team'
      9 NAME = 'cheets_CTS_N.x86.CtsUsageStatsTestCasesPreconditions'
     10 ATTRIBUTES = 'suite:cts_N_Pre'
     11 DEPENDENCIES = 'arc, cts_abi_x86'
     12 JOB_RETRIES = 2
     13 TEST_TYPE = 'server'
     14 TIME = 'LENGTHY'
     15 
     16 DOC = ('Run module CtsUsageStatsTestCases of the '
     17        'Android 7.1_r6 Compatibility Test Suite (CTS), build 4009365,'
     18        'using x86 ABI in the ARC++ container.')
     19 
     20 if not ssid:
     21   ssid = 'GoogleGuest'
     22 
     23 if not wifipass:
     24   wifipass = ''
     25 
     26 def 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='CtsUsageStatsTestCases',
     35         target_module='CtsUsageStatsTestCases',
     36         bundle='x86',
     37         timeout=3600,
     38         warn_on_test_retry=False,
     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         ])
     44 
     45 parallel_simple(run_CTS, machines)
     46