blob: fb2ea67716b48470d6d9ebc6ca8ecb27cefaa586 [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-inline"
7PURPOSE = "Test critical functionality."
8CRITERIA = "All tests with SUITE=bvt-inline must pass."
9
10TIME = "SHORT"
11TEST_CATEGORY = "General"
12TEST_CLASS = "suite"
13TEST_TYPE = "Server"
14
15DOC = """
16This is the portion of the Build Verification Test suite required
17to pass before any other tests may run. Test failures in this
18suite trigger automatic actions:
19 * Failures in the Commit Queue or Pre-Flight Queue fail the build,
20 and block running tests from the bvt-cq suite.
21 * Failures in the canary turn the tree red, block all other tests
22 for the build, and generally mean that QA cannot further
23 evaluate the build's fitness for release.
24
25Requirements for a test to be in this suite:
26 1. The test should be SHORT, and should not require any specialized
27 lab resources.
28 2. A test failure should indicate one or more of the following
29 impacts is possible:
30 * The failure may impact the stability of the test lab.
31 * The failure may prevent discovery of other bugs.
32 * The failure may block ordinary development tasks.
33 3. A test failure must reliably indicate a bug in the product, and
34 not a bug in the test.
35
36@param build: The name of the image to test.
37 Ex: x86-mario-release/R17-1412.33.0-a1-b29
38@param board: The board to test on. Ex: x86-mario
39@param pool: The pool of machines to utilize for scheduling. If pool=None
40 board is used.
41@param check_hosts: require appropriate live hosts to exist in the lab.
42@param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
43"""
44
45import common
46from autotest_lib.server.cros import provision
47from autotest_lib.server.cros.dynamic_suite import dynamic_suite
48
49
50# Values specified in this bug template will override default values when
51# filing bugs on tests that are a part of this suite. If left unspecified
52# the bug filer will fallback to it's defaults.
53_BUG_TEMPLATE = {
54 'labels': ['bvt'],
55 'owner': '',
56 'status': None,
57 'summary': None,
58 'title': None,
59 'ccs': ['chromeos-lab-errors@google.com']
60}
61
Shuqian Zhao24785cc2015-06-01 16:32:18 -070062args_dict['max_runtime_mins'] = 20
63args_dict['name'] = 'bvt-inline'
64args_dict['job'] = job
65args_dict['add_experimental'] = True
66args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
67args_dict['bug_template'] = _BUG_TEMPLATE
68
69dynamic_suite.reimage_and_run(**args_dict)