xref: /aosp_15_r20/external/autotest/client/site_tests/power_KernelSuspend/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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.client.common_lib import utils
6
7AUTHOR = "ChromeOS Team"
8NAME = "power_KernelSuspend"
9ATTRIBUTES = "suite:jailed_build"
10TIME = "SHORT"
11TEST_CATEGORY = "Functional"
12TEST_CLASS = "power"
13TEST_TYPE = "client"
14PY_VERSION = 3
15
16DOC = """
17Simple system suspend. This is the most basic suspend test.
18"""
19
20args_dict = utils.args_to_dict(args)
21seconds = int(args_dict.get('seconds', 10))
22
23job.add_sysinfo_logfile('/sys/kernel/debug/suspend_stats', on_every_test=True)
24job.run_test('power_KernelSuspend', seconds=seconds)
25