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