1 # Copyright 2016 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 = "Chrome OS Team" 8 NAME = "servohost_Reboot.force_reboot" 9 PURPOSE = "Perform a safe forced reboot of a servo host." 10 TIME = "SHORT" 11 TEST_CATEGORY = "General" 12 TEST_TYPE = "server" 13 14 DOC = """ 15 This test will lock all the duts that share the same servo host to ensure there 16 is no disruption to the duts when the servo host is rebooted. This is to give 17 a safe avenue to reboot a servo host responsible for multiple duts. 18 """ 19 20 args_dict = utils.args_to_dict(args) 21 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 22 23 def run(machine): 24 host = hosts.create_host(machine, servo_args=servo_args) 25 job.run_test('servohost_Reboot', host=host, force_reboot=True) 26 27 parallel_simple(run, machines) 28