• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
11TIME = "SHORT"
12TEST_CATEGORY = "Functional"
13TEST_CLASS = "power"
14TEST_TYPE = "server"
15DEPENDENCIES = "servo"
16DOC = """
17Verifies that cold boots work correctly.
18
19This 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
27args_dict = utils.args_to_dict(args)
28servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
29
30def run(machine):
31    host = hosts.create_host(machine, servo_args=servo_args)
32    job.run_test("system_ColdBoot", host=host, disable_sysinfo=True)
33
34parallel_simple(run, machines)
35