• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
8
9AUTHOR = "shijinabraham@chromium.org"
10NAME = "enterprise_CFM_Aver520Updater.vc520"
11TIME = "MEDIUM"
12TEST_CATEGORY = "Functional"
13TEST_CLASS = "enterprise"
14ATTRIBUTES = "suite:hotrod"
15TEST_TYPE = "server"
16DEPENDENCIES = "aver-vc520"
17
18
19DOC = """
20This test verifies that the Aver VC520 camera firmware updater is working
21as 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
29This test will work on guado and fizz Chromeboxes with Aver VC520 Camera
30connected
31"""
32
33args_dict = utils.args_to_dict(args)
34
35def 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
40parallel_simple(run_test, machines)
41