blob: efaa5f4dba5f452ed80567300b8d8d29bc4c117f [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "tgao@chromium.org"
NAME = "network_WiFiChaosPSK"
TIME = "LONG"
TEST_CATEGORY = "Functional"
TEST_CLASS = "network"
TEST_TYPE = "server"
DOC = """
This script iterates through user-specified access points in the AP
compatibility lab which supports PSK security and has a chrome device connect
to each in series. This test must be performed in the AP compatibility lab.
"""
from autotest_lib.server.cros.chaos_lib import chaos_interop_test
def run_chaos_psk(machine):
host = hosts.create_host(machine)
# List of specific APs to debug. Please verify the APs indeed support PSK.
debug_aps = ['chromeos3-row2-rack1-host2', 'chromeos3-row2-rack1-host3']
helper = chaos_interop_test.WifiChaosTest('network_WiFiChaosPSK', host)
# capture_host: string hostname or IP of packet_capturer not managed in AFE
# NOTE: if capture_host is specified, it will not be locked in AFE
helper.run(job, ap_spec={'hostnames': debug_aps}, batch_size=2, tries=2,
capture_host=None)
parallel_simple(run_chaos_psk, machines)