Home | History | Annotate | Download | only in test_suites
      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 AUTHOR = "Chrome OS Team"
      6 NAME = "Power Requirements Test Suite"
      7 TIME = "LONG"
      8 TEST_CATEGORY = "General"
      9 TEST_CLASS = "suite"
     10 TEST_TYPE = "Server"
     11 
     12 DOC = """
     13 Run Automated power tests on machines with and without AC.
     14 Intended to verify that the DUT meets CrOS power requirements.
     15 
     16 @param build: The name of the image to test.
     17               Ex: x86-mario-release/R22-2494.33.0
     18 @param board: The board to test on. Ex: x86-mario
     19 @param pool: The pool of machines to utilize for scheduling. If pool=None
     20              board is used.
     21 @param check_hosts: require appropriate live hosts to exist in the lab.
     22 @param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
     23 """
     24 
     25 import common
     26 from autotest_lib.server.cros import provision
     27 from autotest_lib.server.cros.dynamic_suite import dynamic_suite
     28 
     29 _BUG_TEMPLATE = {
     30     'labels': ['OS-Chrome', 'Type-Bug'],
     31     'components': ['OS>Kernel>Power'],
     32     'owner': '',
     33     'status': None,
     34     'summary': None,
     35     'title': None,
     36     'cc': ['dbasehore (a] chromium.org', 'hennessywill (a] chromium.org',
     37            'tbroch (a] chromium.org']
     38 }
     39 
     40 args_dict['add_experimental'] = True
     41 args_dict['bug_template'] = _BUG_TEMPLATE
     42 args_dict['name'] = 'power_requirements'
     43 args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
     44 args_dict['job'] = job
     45 
     46 dynamic_suite.reimage_and_run(**args_dict)
     47