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