• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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 = 'krisr, wiley, jabele'
6NAME = 'network_WiFi_ChaosConnectDisconnect.debug'
7TIME = 'LONG'
8TEST_TYPE = 'server'
9
10DOC = """
11This script iterates through all of the access points in the AP compatibility
12lab and has a chrome device connect to each in series. This test must be
13performed in the AP compatibility lab.
14"""
15
16from autotest_lib.server.cros.ap_configurators import ap_spec
17from autotest_lib.server.cros.chaos_lib import chaos_runner
18
19def run_chaos_debug(machine):
20    host = hosts.create_host(machine)
21    # Test with these two APs
22    debug_aps = ['chromeos3-row2-rack1-host2', 'chromeos3-row2-rack1-host3']
23    ap_specs = [ap_spec.APSpec(band=ap_spec.BAND_2GHZ, hostnames=debug_aps),
24                ap_spec.APSpec(band=ap_spec.BAND_5GHZ, hostnames=debug_aps)]
25    for spec in ap_specs:
26        runner = chaos_runner.ChaosRunner(
27                'network_WiFi_ChaosConnectDisconnect', host, spec)
28        runner.run(job, batch_size=15, tries=2)
29
30
31parallel_simple(run_chaos_debug, machines)
32