• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 The Chromium 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
5from autotest_lib.server import utils
6
7AUTHOR = 'krisr@chromium.org'
8NAME = 'network_WiFi_ChaosConfigSniffer'
9TIME = 'SHORT'
10TEST_CATEGORY = 'Functional'
11TEST_CLASS = 'network'
12TEST_TYPE = 'server'
13
14DOC = """
15Searches for particular SSIDs and generates the config block to be added
16to the chaos_dynamic_ap_list.conf file.
17"""
18
19from autotest_lib.server.cros.network import wifi_client
20
21
22def run_chaos_sniffer(machine):
23    host = hosts.create_host(machine)
24    client = wifi_client.WiFiClient(host, './debug', False)
25    # Add list of SSIDs here
26    ssids = ['airport_express_n_a_ch44_wpa2']
27    job.run_test('network_WiFi_ChaosConfigSniffer', wifi_client=client,
28                 ssids=ssids)
29
30
31parallel_simple(run_chaos_sniffer, machines)
32