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 5 from autotest_lib.server import utils 6 7 AUTHOR = 'krisr (a] chromium.org' 8 NAME = 'network_WiFi_ChaosConfigSniffer' 9 TIME = 'SHORT' 10 TEST_CATEGORY = 'Functional' 11 TEST_CLASS = 'network' 12 TEST_TYPE = 'server' 13 14 DOC = """ 15 Searches for particular SSIDs and generates the config block to be added 16 to the chaos_dynamic_ap_list.conf file. 17 """ 18 19 from autotest_lib.server.cros.network import wifi_client 20 21 22 def 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 31 parallel_simple(run_chaos_sniffer, machines) 32