1 # Copyright (c) 2013 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 = "dbasehore, snanda" 10 NAME = "power_DarkResumeShutdownServer" 11 ATTRIBUTES = "suite:kernel_daily_regression" 12 SUITE = "kernel_daily_regression" 13 TIME = "MEDIUM" 14 TEST_CATEGORY = "Functional" 15 TEST_CLASS = "power" 16 TEST_TYPE = "server" 17 DEPENDENCIES = "servo, rpm" 18 19 DOC = """ 20 Test that dark resume will result in a shutdown when it resumes without the 21 power plugged in (and setup so the battery margin will allow it to suspend 22 again). 23 """ 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("power_DarkResumeShutdownServer", 31 host=host, disable_sysinfo=True) 32 33 parallel_simple(run, machines) 34