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.client.common_lib.cros.cfm.usb import cfm_usb_devices 6from autotest_lib.server import utils 7 8AUTHOR = "shijinabraham@chromium.org" 9NAME = "enterprise_CFM_Aver520Updater.cam520" 10TIME = "MEDIUM" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "enterprise" 13ATTRIBUTES = "suite:hotrod" 14TEST_TYPE = "server" 15DEPENDENCIES = "aver-cam520" 16 17 18DOC = """ 19This test verifies that the Aver CAM520 camera firmware updater is working 20as intended. This test performs the following 21- Make the rootfs writable. 22- Backup the original firmware. 23- Copy older firmware bundled with test. 24- Force upgrade the Aver device to older firmware. 25- Powercycle the usb port to trigger the firmware updater. 26- Confirm firmware has been updated. 27- Cleanup 28This test will work on guado and fizz Chromeboxes with Aver CAM520 Camera 29connected 30""" 31 32args_dict = utils.args_to_dict(args) 33 34def run_test(machine): 35 test_name = "enterprise_CFM_Aver520Updater" 36 host = hosts.create_host(machine, servo_args=None) 37 job.run_test(test_name, host=host, camera=cfm_usb_devices.AVER_CAM520_CAMERA) 38 39parallel_simple(run_test, machines) 40