1# Copyright (c) 2014 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 5import time 6from autotest_lib.server import utils 7 8AUTHOR = "dbasehore, snanda" 9NAME = "power_RPMTest" 10TIME = "SHORT" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "power" 13TEST_TYPE = "server" 14 15DOC = """ 16This tests that the power supply for a device can successfully change state. 17""" 18 19args_dict = utils.args_to_dict(args) 20servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 21 22def run(machine): 23 host = hosts.create_host(machine, servo_args=servo_args) 24 job.run_test('power_RPMTest', verify=True, host=host, 25 power_sequence=[False, True]) 26 27parallel_simple(run, machines) 28