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 5 from autotest_lib.server import utils 6 7 AUTHOR = "Chrome OS Team" 8 NAME = "platform_ExternalUSBBootStress.50" 9 PURPOSE = "Servo based USB boot stress test" 10 CRITERIA = "This test will fail if the device fails to boot." 11 TIME = "LONG" 12 TEST_CATEGORY = "Functional" 13 TEST_CLASS = "platform" 14 TEST_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 20 DOC = """ 21 This test uses servo to simulate USB connect/removal events during boot 22 """ 23 24 args_dict = utils.args_to_dict(args) 25 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 26 27 def 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 35 parallel_simple(run, machines) 36