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