• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5from autotest_lib.server import utils
6
7AUTHOR = "Chrome OS Team"
8NAME = "platform_ExternalUSBBootStress"
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
16DOC = """
17This test uses servo to simulate USB connect/removal events during boot
18"""
19
20args_dict = utils.args_to_dict(args)
21servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
22
23def 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
31parallel_simple(run, machines)
32