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 = "kalin" 8NAME = "platform_SuspendResumeTiming" 9PURPOSE = "Servo based suspend-resume timing check test" 10CRITERIA = "This test will fail if time to suspend or resume is too long." 11TIME = "LONG" 12TEST_CATEGORY = "Functional" 13TEST_CLASS = "platform" 14TEST_TYPE = "server" 15ATTRIBUTES = "suite:usb_detect" 16DEPENDENCIES = "servo, usb_detect" 17 18DOC = """ 19This test measures the time to suspend and resume 20for the case of disconnected USB hub with peripherals 21by servo. 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 job.run_test("platform_SuspendResumeTiming", host=host, 30 plug_usb=False, disable_sysinfo=True) 31 32parallel_simple(run, machines)