• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.bin import test
6from autotest_lib.client.cros import sys_power
7
8class power_KernelSuspend(test.test):
9    """Suspend the system."""
10
11    version = 1
12
13    def run_once(self, seconds=10):
14        # go to suspend
15        sys_power.kernel_suspend(seconds)
16