• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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 = "Chrome OS Team"
8NAME = "platform_ExternalUSBBootStress.50"
9PURPOSE = "Servo based USB boot stress test"
10CRITERIA = "This test will fail if the device fails to boot."
11TIME = "LONG"
12TEST_CATEGORY = "Functional"
13TEST_CLASS = "platform"
14TEST_TYPE = "server"
15# Stop running the test due to crbug.com/654478
16# ATTRIBUTES = "suite:usb_detect_stress"
17# DEPENDENCIES = "servo, usb_detect"
18
19
20DOC = """
21This test uses servo to simulate USB connect/removal events during boot
22"""
23
24args_dict = utils.args_to_dict(args)
25servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
26
27def run(machine):
28    host = hosts.create_host(machine, servo_args=servo_args)
29
30    reboots = int(args_dict.get('reboots', 50))
31
32    job.run_test("platform_ExternalUSBBootStress", host=host,
33                 disable_sysinfo=True, reboots=reboots)
34
35parallel_simple(run, machines)
36