blob: 74e2d5a41704d3fb6a197c2357382f647091adaa [file] [log] [blame]
Scott Zawalski8fb0af92012-07-11 20:24:11 -04001# 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
Alex Miller2229c9c2013-08-27 15:20:39 -070026from autotest_lib.server.cros import provision
Chris Masone304d78d2012-08-15 20:20:49 -070027from autotest_lib.server.cros.dynamic_suite import dynamic_suite
Scott Zawalski8fb0af92012-07-11 20:24:11 -040028
Todd Broch72e6cf62015-10-21 14:31:55 -070029_BUG_TEMPLATE = {
Fang Dengdc666e02016-05-11 15:03:07 -070030 'labels': ['OS-Chrome', 'Type-Bug'],
31 'components': ['OS>Kernel>Power'],
Todd Broch72e6cf62015-10-21 14:31:55 -070032 'owner': '',
33 'status': None,
34 'summary': None,
35 'title': None,
Todd Broch51234232016-10-03 13:56:32 -070036 'cc': ['dbasehore@chromium.org', 'hennessywill@chromium.org',
Todd Broch72e6cf62015-10-21 14:31:55 -070037 'tbroch@chromium.org']
38}
39
Shuqian Zhao24785cc2015-06-01 16:32:18 -070040args_dict['add_experimental'] = True
Todd Broch72e6cf62015-10-21 14:31:55 -070041args_dict['bug_template'] = _BUG_TEMPLATE
Shuqian Zhao24785cc2015-06-01 16:32:18 -070042args_dict['name'] = 'power_requirements'
43args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
44args_dict['job'] = job
45
46dynamic_suite.reimage_and_run(**args_dict)