1# Copyright 2018 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# Test expects to be run on a jailbroken device in developer mode. 6 7from autotest_lib.server import utils 8 9AUTHOR = "ravisadineni" 10NAME = "power_WakeSources" 11TIME = "SHORT" 12TEST_CATEGORY = "Functional" 13TEST_CLASS = "power" 14TEST_TYPE = "server" 15DEPENDENCIES = "servo_state:WORKING" 16ATTRIBUTES = "suite:power_build" 17PY_VERSION = 3 18 19DOC = """ 20Tests the following 21 1. Wakes by input devices trigger a full wake. 22 2. Wake by RTC triggers a dark resume. 23""" 24 25args_dict = utils.args_to_dict(args) 26servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 27 28def run(machine): 29 host = hosts.create_host(machine, servo_args=servo_args) 30 job.run_test("power_WakeSources", host=host, disable_sysinfo=True) 31 32parallel_simple(run, machines) 33