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