1# Copyright 2018 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 = "ChromeOS Team" 8NAME = "servo_USBInstall" 9PURPOSE = "Force reinstall cros to a dut from the servo." 10TIME = "MEDIUM" 11TEST_CATEGORY = "Install" 12TEST_TYPE = "server" 13DEPENDENCIES = "servo_state:WORKING" 14PY_VERSION = 3 15 16DOC = """ 17This test will do the same thing as ServoInstallRepair does, but with out 18need any trigger. It will install cros on the dut use the image from USB 19that plugged into the servo. 20""" 21 22args_dict = utils.args_to_dict(args) 23servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 24 25def run(machine): 26 host = hosts.create_host(machine, servo_args=servo_args) 27 job.run_test('servo_USBInstall', host=host) 28 29parallel_simple(run, machines) 30