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
5from autotest_lib.server import utils
6
7AUTHOR = "frankhu@chromium.org"
8NAME = "enterprise_CFM_LogitechPtzUpdater"
9TIME = "SHORT"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "enterprise"
12ATTRIBUTES = "suite:hotrod"
13TEST_TYPE = "server"
14JOB_RETRIES = 3
15DEPENDENCIES = "ptzpro2"
16
17DOC = """
18This test first flash the older version Logitech Ptz Pro 2 firmware to the
19Camera and then power cycle the corresponding usb port. This should triger the
20udev rule to invoke the Logitech FW updater to flash the latest FW to Ptz Pro 2.
21This is validated by running the updater again and checking the log.
22"""
23
24args_dict = utils.args_to_dict(args)
25
26def run_test(machine):
27    host = hosts.create_host(machine, servo_args=None)
28    job.run_test(NAME, host=host)
29
30parallel_simple(run_test, machines)
31