# Copyright 2015 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. AUTHOR = 'tienchang' NAME = 'network_WiFi_ChaosConnectDisconnect.nightly' TIME = 'LONG' TEST_TYPE = 'server' ATTRIBUTES = 'suite:wifi_interop' SUITE = 'wifi_interop' DEPENDENCIES = 'chaos_nightly, chaos_dut' DOC = """ This control file runs a combination of DUTs and APs in a nightly run of network_WiFi_ChaosConnectDisconnect. """ from autotest_lib.server.cros.ap_configurators import ap_spec from autotest_lib.server.cros.chaos_lib import chaos_runner def run_chaos_nightly(machine): host = hosts.create_host(machine) test_aps = ['chromeos3-row4-rack1-host11', 'chromeos3-row5-rack2-host12', 'chromeos3-row5-rack4-host12', 'chromeos3-row2-rack1-host2', 'chromeos3-row3-rack3-host5'] ap_specs = [ap_spec.APSpec(hostnames=test_aps, security=ap_spec.SECURITY_TYPE_WPA2PSK)] for spec in ap_specs: runner = chaos_runner.ChaosRunner( 'network_WiFi_ChaosConnectDisconnect', host, spec) runner.run(job, batch_size=1) parallel_simple(run_chaos_nightly, machines)