Home | History | Annotate | Download | only in network_WiFi_ChaosConnectDisconnect
      1 # Copyright 2015 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 AUTHOR = 'tienchang'
      6 NAME = 'network_WiFi_ChaosConnectDisconnect.nightly'
      7 TIME = 'LONG'
      8 TEST_TYPE = 'server'
      9 ATTRIBUTES = 'suite:wifi_interop'
     10 SUITE = 'wifi_interop'
     11 DEPENDENCIES = 'chaos_nightly, chaos_dut'
     12 
     13 DOC = """
     14 This control file runs a combination of DUTs and APs in a nightly run of
     15 network_WiFi_ChaosConnectDisconnect.
     16 """
     17 
     18 from autotest_lib.server.cros.ap_configurators import ap_spec
     19 from autotest_lib.server.cros.chaos_lib import chaos_runner
     20 
     21 def run_chaos_nightly(machine):
     22     host = hosts.create_host(machine)
     23     test_aps = ['chromeos3-row4-rack1-host11', 'chromeos3-row5-rack2-host12',
     24                 'chromeos3-row5-rack4-host12', 'chromeos3-row2-rack1-host2',
     25                 'chromeos3-row3-rack3-host5']
     26     ap_specs = [ap_spec.APSpec(hostnames=test_aps,
     27                                security=ap_spec.SECURITY_TYPE_WPA2PSK)]
     28 
     29     for spec in ap_specs:
     30         runner = chaos_runner.ChaosRunner(
     31                 'network_WiFi_ChaosConnectDisconnect', host, spec)
     32         runner.run(job, batch_size=1)
     33 
     34 parallel_simple(run_chaos_nightly, machines)
     35