• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6from autotest_lib.client.common_lib.cros.cfm.usb import cfm_usb_devices
7
8AUTHOR = "harpreet@chromium.org"
9NAME = "enterprise_CFM_USBSpeakerEndToEndSanity.atrus"
10TIME = "SHORT"
11TEST_CATEGORY = "Functional"
12TEST_CLASS = "enterprise"
13TEST_TYPE = "server"
14ATTRIBUTES = "suite:bluestreak"
15DEPENDENCIES = "atrus, motor_control_board"
16JOB_RETRIES = 3
17
18DOC = """
19This test clears the TPM and enables the appropriate usb port on the servo
20before kicking off a client side test that enrolls the device into CFM. Once
21the device in enrolled, a different client test is kicked off to change the
22hangouts volume using hotrod kiosk app JS hooks. These changes are then
23validated against the cras_test_client output to make sure the volume matches.
24"""
25
26args_dict = utils.args_to_dict(args)
27servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
28chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
29
30def run_test(machine):
31    host = hosts.create_host(machine, servo_args=servo_args,
32                             chameleon_args=chameleon_args)
33    job.run_test('enterprise_CFM_USBSpeakerEndToEndSanity', host=host,
34                 usb_speaker=cfm_usb_devices.ATRUS, tag="atrus")
35
36
37parallel_simple(run_test, machines)
38