1 # Copyright 2017 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 = "mruthven" 8 NAME = "firmware_Cr50DeepSleepStress" 9 PURPOSE = "Verify deep sleep" 10 TIME = "Long" 11 TEST_TYPE = "server" 12 13 DOC = """ 14 Cr50 should enter deep sleep every time the system goes into S3. Run 15 power_SuspendStress and verify the deep sleep count matches the number of 16 suspend iterations. 17 """ 18 19 args_dict = utils.args_to_dict(args) 20 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 21 22 def run(machine): 23 host = hosts.create_host(machine, servo_args=servo_args) 24 25 duration = int(args_dict.get("duration", 600)) 26 suspend_iterations = int(args_dict.get("suspend_iterations", 0)) 27 28 job.run_test("firmware_Cr50DeepSleepStress", host=host, 29 duration=duration, suspend_iterations=suspend_iterations, 30 cmdline_args=args) 31 32 parallel_simple(run, machines) 33