Home | History | Annotate | Download | only in network_WiFi_WakeOnWiFiThrottling
      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_WakeOnWiFiThrottling'
      7 TIME = 'SHORT'
      8 TEST_TYPE = 'Server'
      9 DEPENDENCIES = 'servo, wificell, lucidsleep'
     10 ATTRIBUTES = ('suite:wifi_correctness_cros_core, suite:wifi_matfunc, '
     11               'suite:wifi_lucidsleep')
     12 SUITE = 'wifi_matfunc, wifi_correctness_cros_core, wifi_lucidsleep'
     13 
     14 DOC = """
     15 This test verifies that shill disables wake on WiFi when the DUT wakes up in
     16 dark resume too frequently. Test both the short and long thresholds, which are 3
     17 dark resumes per 1 minute and 10 dark resumes per 10 minutes respectively.
     18 """
     19 
     20 from autotest_lib.client.common_lib.cros.network import xmlrpc_datatypes
     21 from autotest_lib.client.common_lib.cros.network import xmlrpc_security_types
     22 from autotest_lib.server.cros.network import hostap_config
     23 from autotest_lib.server import utils
     24 
     25 args_dict = utils.args_to_dict(args)
     26 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     27 
     28 def run(machine):
     29     host = hosts.create_host(machine, servo_args=servo_args)
     30     job.run_test('network_WiFi_WakeOnWiFiThrottling',
     31                  host=host,
     32                  raw_cmdline_args=args)
     33 
     34 parallel_simple(run, machines)
     35