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 5AUTHOR = 'tienchang' 6NAME = 'network_WiFi_ChaosConnectDisconnect.nightly' 7TIME = 'LONG' 8TEST_TYPE = 'server' 9ATTRIBUTES = 'suite:wifi_interop' 10SUITE = 'wifi_interop' 11DEPENDENCIES = 'chaos_nightly, chaos_dut' 12 13DOC = """ 14This control file runs a combination of DUTs and APs in a nightly run of 15network_WiFi_ChaosConnectDisconnect. 16""" 17 18from autotest_lib.server.cros.ap_configurators import ap_spec 19from autotest_lib.server.cros.chaos_lib import chaos_runner 20 21def 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 34parallel_simple(run_chaos_nightly, machines) 35