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# TEST IS DISABLED UNTIL MIGRATED TO PYTHON 3. 6# For instructions on how to: go/tauto-py3-migration 7# To re-enable migrate to Python 3. 8# If the test is not migrated by 1/14/22 it will be deleted. 9 10from autotest_lib.server import utils 11 12AUTHOR = 'krisr@chromium.org' 13NAME = 'network_WiFi_ChaosConfigSniffer' 14TIME = 'SHORT' 15TEST_CATEGORY = 'Functional' 16TEST_CLASS = 'network' 17TEST_TYPE = 'server' 18PY_VERSION = 3 19 20DOC = """ 21Searches for particular SSIDs and generates the config block to be added 22to the chaos_dynamic_ap_list.conf file. 23""" 24 25from autotest_lib.server.cros.network import wifi_client 26 27 28def run_chaos_sniffer(machine): 29 host = hosts.create_host(machine) 30 client = wifi_client.WiFiClient(host, './debug', False) 31 # Add list of SSIDs here 32 ssids = ['airport_express_n_a_ch44_wpa2'] 33 job.run_test('network_WiFi_ChaosConfigSniffer', wifi_client=client, 34 ssids=ssids) 35 36 37parallel_simple(run_chaos_sniffer, machines) 38