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 = "Chrome OS Team" 8NAME = "power_KernelSuspend" 9ATTRIBUTES = "suite:jailed_build" 10SUITE = "jailed_build" 11TIME = "SHORT" 12TEST_CATEGORY = "Functional" 13TEST_CLASS = "power" 14TEST_TYPE = "client" 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