| # Copyright 2023 The ChromiumOS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from autotest_lib.server import utils |
| |
| NAME = 'network_WiFi_ChaosConfigSniffer' |
| METADATA = { |
| 'contacts': ['chromeos-connectivity-engprod@google.com'], |
| 'bug_component': 'b:978946', |
| 'criteria': 'Searches for particular SSIDs and generates the ' |
| 'config block to be added to the chaos_dynamic_ap_list.conf file.', |
| 'hw_agnostic': False |
| } |
| TEST_TYPE = 'server' |
| |
| from autotest_lib.server.cros.network import wifi_client |
| |
| |
| def run_chaos_sniffer(machine): |
| host = hosts.create_host(machine) |
| client = wifi_client.WiFiClient(host, './debug', False) |
| # Add list of SSIDs here |
| ssids = ['airport_express_n_a_ch44_wpa2'] |
| job.run_test('network_WiFi_ChaosConfigSniffer', wifi_client=client, |
| ssids=ssids) |
| |
| parallel_simple(run_chaos_sniffer, machines) |