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