Home | History | Annotate | Download | only in enterprise_CFM_BizlinkUpdater
      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 = "frankhu (a] chromium.org"
      8 NAME = "enterprise_CFM_BizlinkUpdater"
      9 TIME = "SHORT"
     10 TEST_CATEGORY = "Functional"
     11 TEST_CLASS = "enterprise"
     12 TEST_TYPE = "server"
     13 JOB_RETRIES = 3
     14 
     15 DOC = """
     16 Tests the Bizlink FW updater. The test does the following:
     17 1) flashes an older version megachips firmware to the Bizlink dongle
     18 2) reboots the device trigger the firmware updater to flash the new firmware
     19 3) verifies udev triggered the Bizlink FW updater to flash the latest FW to the
     20  dongle by checking the FW version on the dongle
     21 """
     22 
     23 args_dict = utils.args_to_dict(args)
     24 
     25 def run_test(machine):
     26     host = hosts.create_host(machine, servo_args=None)
     27     job.run_test(NAME, host=host)
     28 
     29 parallel_simple(run_test, machines)
     30