• 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
12PY_VERSION = 3
13
14DOC = """
15This script iterates through all 2Ghz access points in Chaos chamber.
16"""
17
18from autotest_lib.server.cros.ap_configurators import ap_spec
19from autotest_lib.server.cros.chaos_lib import static_runner
20
21def run_chaos_static(machine):
22    host = hosts.create_host(machine)
23    # Test all 2Ghz static APs on channel 1, 6 and 11
24    ap_specs = [ap_spec.APSpec(band=ap_spec.BAND_2GHZ,
25                               channel = 1,
26                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
27                ap_spec.APSpec(band=ap_spec.BAND_2GHZ,
28                               channel = 6,
29                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
30                ap_spec.APSpec(band=ap_spec.BAND_2GHZ,
31                               channel = 11,
32                               configurator_type=ap_spec.CONFIGURATOR_STATIC)]
33
34    for spec in ap_specs:
35        runner = static_runner.StaticRunner(
36                'network_WiFi_ChaosConnectDisconnect', host, spec)
37        runner.run(job)
38
39parallel_simple(run_chaos_static, machines)
40