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