• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_lucidsleep'
11
12DOC = """
13This test verifies that, during suspend, when a DUT is momentarily disconnected
14from an AP that is still up, the DUT will reconnect to that AP during the same
15dark resume that was triggered by the disconnect.
16
17We verify the connectivity status of the DUT on resume by parsing shill logs,
18since the delays involved in waking a DUT from suspend using autotest framework
19make real-time checks inaccurate.
20"""
21
22from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes
23from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types
24from autotest_lib.server.cros.network import hostap_config
25from autotest_lib.server import utils
26
27args_dict = utils.args_to_dict(args)
28servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
29
30def run(machine):
31    host = hosts.create_host(machine, servo_args=servo_args)
32    job.run_test('network_WiFi_FastReconnectInDarkResume',
33                 host=host,
34                 raw_cmdline_args=args)
35
36parallel_simple(run, machines)
37