• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 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 = 'harpreet'
6NAME = 'network_WiFi_ChaosConnectDisconnect.static_2Ghz'
7TIME = 'LONG'
8TEST_TYPE = 'server'
9ATTRIBUTES = 'suite:wifi_interop'
10DEPENDENCIES = 'chaos_dut'
11MAX_RESULT_SIZE_KB = 512000
12
13DOC = """
14This script iterates through all 2Ghz access points in Chaos chamber.
15"""
16
17from autotest_lib.server.cros.ap_configurators import ap_spec
18from autotest_lib.server.cros.chaos_lib import static_runner
19
20def run_chaos_static(machine):
21    host = hosts.create_host(machine)
22    # Test all 2Ghz static APs on channel 1, 6 and 11
23    ap_specs = [ap_spec.APSpec(band=ap_spec.BAND_2GHZ,
24                               channel = 1,
25                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
26                ap_spec.APSpec(band=ap_spec.BAND_2GHZ,
27                               channel = 6,
28                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
29                ap_spec.APSpec(band=ap_spec.BAND_2GHZ,
30                               channel = 11,
31                               configurator_type=ap_spec.CONFIGURATOR_STATIC)]
32
33    for spec in ap_specs:
34        runner = static_runner.StaticRunner(
35                'network_WiFi_ChaosConnectDisconnect', host, spec)
36        runner.run(job)
37
38parallel_simple(run_chaos_static, machines)
39