1 # Copyright 2017 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 = "frankhu (a] chromium.org" 8 NAME = "enterprise_CFM_SiSFwUpdater" 9 TIME = "SHORT" 10 TEST_CATEGORY = "Functional" 11 TEST_CLASS = "enterprise" 12 ATTRIBUTES = "suite:bluestreak" 13 TEST_TYPE = "server" 14 JOB_RETRIES = 3 15 DEPENDENCIES = "mimo" 16 17 DOC = """ 18 This test first flash the older version SiS firmware to the Mimo and then power 19 cycle the corresponding usb port. This should triger the udev rule to invoke 20 the SiS FW updater to flash the latest FW to Mimo. This is validated by running 21 the updater again and checking the log. 22 """ 23 24 args_dict = utils.args_to_dict(args) 25 26 def run_test(machine): 27 host = hosts.create_host(machine, servo_args=None) 28 job.run_test(NAME, host=host) 29 30 parallel_simple(run_test, machines) 31