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