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