• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5from autotest_lib.server import utils
6
7AUTHOR = "mruthven"
8NAME = "firmware_Cr50DeepSleepStress"
9PURPOSE = "Verify deep sleep"
10TIME = "Long"
11TEST_TYPE = "server"
12
13DOC = """
14Cr50 should enter deep sleep every time the system goes into S3. Run
15power_SuspendStress and verify the deep sleep count matches the number of
16suspend iterations.
17"""
18
19args_dict = utils.args_to_dict(args)
20servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
21
22def 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
32parallel_simple(run, machines)
33