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