blob: 87047b0b2200ab49f2dc53b2619247dd93d7dbaf [file] [log] [blame]
J. Richard Barnettef4173472014-07-23 14:01:56 -07001# Copyright (c) 2014 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 = "bvt-cq"
7PURPOSE = "Test functionality required by the Commit Queue."
J. Richard Barnettef4173472014-07-23 14:01:56 -07008
9TIME = "SHORT"
10TEST_CATEGORY = "General"
11TEST_CLASS = "suite"
12TEST_TYPE = "Server"
13
14DOC = """
15This is the portion of the Build Verification Test suite required to
16pass the Chrome OS Commit Queue and Pre-Flight Queue. Test failures
17prevent code from being included in the tree or in canary builds:
18 * Chrome OS CLs must pass these tests prior to being accepted into
19 the tree.
20 * A new Chrome build must pass these tests prior to the build
21 being included in a Chrome OS canary build.
22
23Requirements for a test to be in this suite:
24 1. The test should be SHORT, and should not require any specialized
25 lab resources.
26 2. A test failure should indicate that the product is not fit for
27 release on any channel.
28 3. A test failure must reliably indicate a bug in the product, and
29 not a bug in the test.
Richard Barnettee19dd842018-03-19 12:14:28 -070030 4. The test must be hermetic. That is, the test should have no
31 dependencies on external network resources.
J. Richard Barnettef4173472014-07-23 14:01:56 -070032
33@param build: The name of the image to test.
34 Ex: x86-mario-release/R17-1412.33.0-a1-b29
35@param board: The board to test on. Ex: x86-mario
36@param pool: The pool of machines to utilize for scheduling. If pool=None
37 board is used.
38@param check_hosts: require appropriate live hosts to exist in the lab.
39@param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
40"""
41
42import common
43from autotest_lib.server.cros import provision
44from autotest_lib.server.cros.dynamic_suite import dynamic_suite
45
46
47# Values specified in this bug template will override default values when
48# filing bugs on tests that are a part of this suite. If left unspecified
49# the bug filer will fallback to it's defaults.
50_BUG_TEMPLATE = {
51 'labels': ['bvt'],
52 'owner': '',
53 'status': None,
54 'summary': None,
55 'title': None,
J. Richard Barnettef4173472014-07-23 14:01:56 -070056}
57
David Rileya39d99a2017-06-01 16:09:39 -070058args_dict['max_runtime_mins'] = 30
Shuqian Zhao24785cc2015-06-01 16:32:18 -070059args_dict['name'] = 'bvt-cq'
60args_dict['job'] = job
61args_dict['add_experimental'] = True
62args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
63args_dict['bug_template'] = _BUG_TEMPLATE
64
65dynamic_suite.reimage_and_run(**args_dict)