1 # Copyright (c) 2015 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 from autotest_lib.server import utils 6 7 AUTHOR = "cernekee" 8 NAME = "system_ColdBoot" 9 PURPOSE = "Shut down DUT, then initiate a cold boot." 10 ATTRIBUTES = "suite:experimental" 11 TIME = "SHORT" 12 TEST_CATEGORY = "Functional" 13 TEST_CLASS = "power" 14 TEST_TYPE = "server" 15 DEPENDENCIES = "servo" 16 DOC = """ 17 Verifies that cold boots work correctly. 18 19 This executes the following sequence: 20 - remote shutdown of DUT via Linux commands (ssh) 21 - wait for DUT to stop responding to pings 22 - simulate a power button press via servo 23 - wait for DUT to start responding to pings 24 - attempt to log into DUT 25 """ 26 27 args_dict = utils.args_to_dict(args) 28 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 29 30 def run(machine): 31 host = hosts.create_host(machine, servo_args=servo_args) 32 job.run_test("system_ColdBoot", host=host, disable_sysinfo=True) 33 34 parallel_simple(run, machines) 35