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 = "Chrome OS 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" 14 15DOC = """ 16This test will do the same thing as ServoInstallRepair does, but with out 17need any trigger. It will install cros on the dut use the image from USB 18that plugged into the servo. 19""" 20 21args_dict = utils.args_to_dict(args) 22servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 23 24def run(machine): 25 host = hosts.create_host(machine, servo_args=servo_args) 26 job.run_test('servo_USBInstall', host=host) 27 28parallel_simple(run, machines) 29