Home | History | Annotate | Download | only in platform_ExternalUSBBootStress
      1 # Copyright (c) 2012 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"
      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 
     16 DOC = """
     17 This test uses servo to simulate USB connect/removal events during boot
     18 """
     19 
     20 args_dict = utils.args_to_dict(args)
     21 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     22 
     23 def run(machine):
     24     host = hosts.create_host(machine, servo_args=servo_args)
     25 
     26     reboots = int(args_dict.get('reboots', 1000))
     27 
     28     job.run_test("platform_ExternalUSBBootStress", host=host,
     29                  disable_sysinfo=True, reboots=reboots)
     30 
     31 parallel_simple(run, machines)
     32