blob: a91c6f8453ad6037cdae2d2f63448ee74565797b [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.server import utils
AUTHOR = 'ejcaruso, samueltan, snanda'
NAME = 'network_WiFi_WakeOnDisconnect'
TIME = 'SHORT'
TEST_TYPE = 'Server'
DEPENDENCIES = 'wificell, servo'
DOC = """
This tests wake-on-disconnect, which allows us to wake up and potentially
rescan for APs when we lose our connection.
Shill will program wake-on-disconnect if 'ssid' is one of the wake-on-WiFi
features that is enabled. First, we need to tell shill that we want to
enable this, and then shut down the AP -- the DUT should wake up in
a short amount of time after that.
"""
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test('network_WiFi_WakeOnDisconnect',
host=host,
raw_cmdline_args=args)
parallel_simple(run, machines)