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