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" 10TIME = "SHORT" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "power" 13TEST_TYPE = "client" 14 15DOC = """ 16Simple system suspend. This is the most basic suspend test. 17""" 18 19args_dict = utils.args_to_dict(args) 20seconds = int(args_dict.get('seconds', 10)) 21 22job.add_sysinfo_logfile('/sys/kernel/debug/suspend_stats', on_every_test=True) 23job.run_test('power_KernelSuspend', seconds=seconds) 24