blob: 4052a5d721fad630d331b49f17c67e63d7e8ad22 [file] [log] [blame] [edit]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.server import utils
AUTHOR = "Intel"
NAME = "power_BootUpTime.reboot"
PURPOSE = "To check the boot up time using reboot command"
TIME = "MEDIUM"
TEST_CATEGORY = "Functional"
TEST_CLASS = "power"
TEST_TYPE = "server"
ATTRIBUTES = "suite:bootup_time"
DEPENDENCIES = "servo_state:WORKING"
JOB_RETRIES = 3
DOC = """
Reboot the DUT and determine the boot up time
Boot up time should be <= 8.0 Secs
"""
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test("power_BootUpTime", host=host, cmdline_args=args,
boot_type='reboot', disable_sysinfo=False, tag='reboot')
parallel_simple(run, machines)