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 = "frankhu@chromium.org"
8NAME = "enterprise_CFM_BizlinkUpdater"
9TIME = "SHORT"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "enterprise"
12TEST_TYPE = "server"
13JOB_RETRIES = 3
14
15DOC = """
16Tests the Bizlink FW updater. The test does the following:
171) flashes an older version megachips firmware to the Bizlink dongle
182) reboots the device trigger the firmware updater to flash the new firmware
193) 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
23args_dict = utils.args_to_dict(args)
24
25def run_test(machine):
26    host = hosts.create_host(machine, servo_args=None)
27    job.run_test(NAME, host=host)
28
29parallel_simple(run_test, machines)
30