1# Copyright 2015 The Chromium OS 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
5AUTHOR = 'samueltan, ejcaruso'
6NAME = 'network_WiFi_FastReconnectInDarkResume'
7TIME = 'SHORT'
8TEST_TYPE = 'Server'
9DEPENDENCIES = 'servo, wificell, lucidsleep'
10ATTRIBUTES = 'suite:wifi_correctness_cros_core, suite:wifi_lucidsleep'
11SUITE = 'wifi_correctness_cros_core, wifi_lucidsleep'
12
13DOC = """
14This test verifies that, during suspend, when a DUT is momentarily disconnected
15from an AP that is still up, the DUT will reconnect to that AP during the same
16dark resume that was triggered by the disconnect.
17
18We verify the connectivity status of the DUT on resume by parsing shill logs,
19since the delays involved in waking a DUT from suspend using autotest framework
20make real-time checks inaccurate.
21"""
22
23from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes
24from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types
25from autotest_lib.server.cros.network import hostap_config
26from autotest_lib.server import utils
27
28args_dict = utils.args_to_dict(args)
29servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
30
31def run(machine):
32    host = hosts.create_host(machine, servo_args=servo_args)
33    job.run_test('network_WiFi_FastReconnectInDarkResume',
34                 host=host,
35                 raw_cmdline_args=args)
36
37parallel_simple(run, machines)
38