blob: e7483a1b5a36cb95c9d1f49a3bc5fa3cb442a30f [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.server import utils
NAME = "platform_CFM_USBPeripheralStress.reboot_stress_atrus_speaker"
TEST_CATEGORY = "Functional"
TEST_CLASS = "platform"
TEST_TYPE = "server"
ATTRIBUTES = "suite:bluestreak, suite:bluestreak-release"
DOC = """
This test logs in the device in consumer mode and then starts stress testing
the hotplugging and unplugging of USB peripherals. With each hotplug / unplug,
the test verifies if peripheral is enumerated on USB port without issues.
The test fails if
- Peripheral hotplugged is not found.
- Peripheral is not found on the DUT.
args_dict = utils.args_to_dict(args)
def run(machine):
host = hosts.create_host(machine, servo_args=None)
repeat = int(args_dict.get("repeat", 10))
default_actions = str("reboot, login")
action_sequence = str(args_dict.get("action_sequence", default_actions))
peripheral_dict = {'Hangouts Meet speakermic': ('18d1', '8001')}
job.run_test('platform_CFM_USBPeripheralStress', host=host, repeat = repeat,
client_autotest='desktopui_SimpleLogin', crash_check=True,
action_sequence=action_sequence, peripheral_dict=peripheral_dict,
parallel_simple(run, machines)