16 lines
		
	
	
		
			453 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			453 B
		
	
	
	
		
			Python
		
	
	
	
| # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 | |
| # Use of this source code is governed by a BSD-style license that can be
 | |
| # found in the LICENSE file.
 | |
| 
 | |
| from autotest_lib.client.bin import test
 | |
| from autotest_lib.client.cros.power import sys_power
 | |
| 
 | |
| class power_KernelSuspend(test.test):
 | |
|     """Suspend the system."""
 | |
| 
 | |
|     version = 1
 | |
| 
 | |
|     def run_once(self, seconds=10):
 | |
|         # go to suspend
 | |
|         sys_power.kernel_suspend(seconds)
 |