blob: 6254535a670711ae5926540c6b2ab1183e722cce [file] [log] [blame]
# Copyright 2015 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 = 'samueltan, ejcaruso'
NAME = 'network_WiFi_FastReconnectInDarkResume'
TEST_TYPE = 'Server'
DEPENDENCIES = 'servo_state:WORKING, wificell, lucidsleep'
ATTRIBUTES = 'suite:wifi_lucidsleep'
DOC = """
This test verifies that, during suspend, when a DUT is momentarily disconnected
from an AP that is still up, the DUT will reconnect to that AP during the same
dark resume that was triggered by the disconnect.
We verify the connectivity status of the DUT on resume by parsing shill logs,
since the delays involved in waking a DUT from suspend using autotest framework
make real-time checks inaccurate.
from import xmlrpc_datatypes
from import xmlrpc_security_types
from import hostap_config
from autotest_lib.server import utils
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
parallel_simple(run, machines)