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