• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.dynamic_suite import dynamic_suite
27
28_BUG_TEMPLATE = {
29    'labels': ['OS-Chrome', 'Type-Bug'],
30    'components': ['OS>Kernel>Power'],
31    'owner': '',
32    'status': None,
33    'summary': None,
34    'title': None,
35    'cc': ['dbasehore@chromium.org', 'hennessywill@chromium.org',
36           'tbroch@chromium.org']
37}
38
39args_dict['add_experimental'] = True
40args_dict['bug_template'] = _BUG_TEMPLATE
41args_dict['name'] = 'power_requirements'
42args_dict['job'] = job
43
44dynamic_suite.reimage_and_run(**args_dict)
45