• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 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
6
7AUTHOR = "harpreet"
8NAME = "enterprise_CFM_USBPeripheralHotplugStress.jabra410"
9TIME = "SHORT"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "enterprise"
12TEST_TYPE = "server"
13ATTRIBUTES = "suite:hotrod"
14DEPENDENCIES = "servo, jabra410_hotplug_stress"
15JOB_RETRIES = 3
16
17DOC = """
18This test clears the TPM, enrolls the device into hotrod kiosk mode before
19stress testing the hotplugging and unplugging of USB peripherals. With each
20hotplug / unplug it verifies that the hotrod app appropriately detects the
21peripherals using app api's.
22"""
23
24args_dict = utils.args_to_dict(args)
25servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
26
27def run_test(machine):
28    host = hosts.create_host(machine, servo_args=servo_args)
29    repeat = int(args_dict.get('repeat', 10))
30    peripheral_whitelist_dict = {'Speaker': 'Jabra SPEAK 410'}
31    job.run_test('enterprise_CFM_USBPeripheralHotplugStress',
32                 host=host,
33                 repeat=repeat,
34                 peripheral_whitelist_dict=peripheral_whitelist_dict,
35                 tag="speaker")
36
37
38parallel_simple(run_test, machines)
39