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