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