You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
932 B
31 lines
932 B
# 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)
|