xref: /aosp_15_r20/external/autotest/client/site_tests/power_KernelSuspend/power_KernelSuspend.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Lint as: python2, python3
2# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6from autotest_lib.client.bin import test
7from autotest_lib.client.cros.power import sys_power
8
9class power_KernelSuspend(test.test):
10    """Suspend the system."""
11
12    version = 1
13
14    def run_once(self, seconds=10):
15        # go to suspend
16        sys_power.kernel_suspend(seconds)
17