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 5AUTHOR = "Chrome OS Team" 6NAME = "Power Requirements Test Suite" 7TIME = "LONG" 8TEST_CATEGORY = "General" 9TEST_CLASS = "suite" 10TEST_TYPE = "Server" 11 12DOC = """ 13Run Automated power tests on machines with and without AC. 14Intended 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 25import common 26from autotest_lib.server.cros import provision 27from 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@chromium.org', 'hennessywill@chromium.org', 37 'tbroch@chromium.org'] 38} 39 40args_dict['add_experimental'] = True 41args_dict['bug_template'] = _BUG_TEMPLATE 42args_dict['name'] = 'power_requirements' 43args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX 44args_dict['job'] = job 45 46dynamic_suite.reimage_and_run(**args_dict) 47