J. Richard Barnette | f417347 | 2014-07-23 14:01:56 -0700 | [diff] [blame] | 1 | # 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 | |
| 5 | AUTHOR = "Chrome OS Team" |
| 6 | NAME = "bvt-inline" |
| 7 | PURPOSE = "Test critical functionality." |
J. Richard Barnette | f417347 | 2014-07-23 14:01:56 -0700 | [diff] [blame] | 8 | |
| 9 | TIME = "SHORT" |
| 10 | TEST_CATEGORY = "General" |
| 11 | TEST_CLASS = "suite" |
| 12 | TEST_TYPE = "Server" |
| 13 | |
| 14 | DOC = """ |
| 15 | This is the portion of the Build Verification Test suite required |
| 16 | to pass before any other tests may run. Test failures in this |
| 17 | suite trigger automatic actions: |
| 18 | * Failures in the Commit Queue or Pre-Flight Queue fail the build, |
| 19 | and block running tests from the bvt-cq suite. |
| 20 | * Failures in the canary turn the tree red, block all other tests |
| 21 | for the build, and generally mean that QA cannot further |
| 22 | evaluate the build's fitness for release. |
| 23 | |
| 24 | Requirements for a test to be in this suite: |
| 25 | 1. The test should be SHORT, and should not require any specialized |
| 26 | lab resources. |
| 27 | 2. A test failure should indicate one or more of the following |
| 28 | impacts is possible: |
| 29 | * The failure may impact the stability of the test lab. |
| 30 | * The failure may prevent discovery of other bugs. |
| 31 | * The failure may block ordinary development tasks. |
| 32 | 3. A test failure must reliably indicate a bug in the product, and |
| 33 | not a bug in the test. |
Richard Barnette | e19dd84 | 2018-03-19 12:14:28 -0700 | [diff] [blame] | 34 | 4. The test must be hermetic. That is, the test should have no |
| 35 | dependencies on external network resources. |
J. Richard Barnette | f417347 | 2014-07-23 14:01:56 -0700 | [diff] [blame] | 36 | |
| 37 | @param build: The name of the image to test. |
| 38 | Ex: x86-mario-release/R17-1412.33.0-a1-b29 |
| 39 | @param board: The board to test on. Ex: x86-mario |
| 40 | @param pool: The pool of machines to utilize for scheduling. If pool=None |
| 41 | board is used. |
| 42 | @param check_hosts: require appropriate live hosts to exist in the lab. |
| 43 | @param SKIP_IMAGE: (optional) If present and True, don't re-image devices. |
| 44 | """ |
| 45 | |
| 46 | import common |
J. Richard Barnette | f417347 | 2014-07-23 14:01:56 -0700 | [diff] [blame] | 47 | from 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, |
J. Richard Barnette | f417347 | 2014-07-23 14:01:56 -0700 | [diff] [blame] | 59 | } |
| 60 | |
David Riley | a39d99a | 2017-06-01 16:09:39 -0700 | [diff] [blame] | 61 | args_dict['max_runtime_mins'] = 30 |
Shuqian Zhao | 24785cc | 2015-06-01 16:32:18 -0700 | [diff] [blame] | 62 | args_dict['name'] = 'bvt-inline' |
| 63 | args_dict['job'] = job |
| 64 | args_dict['add_experimental'] = True |
Shuqian Zhao | 24785cc | 2015-06-01 16:32:18 -0700 | [diff] [blame] | 65 | args_dict['bug_template'] = _BUG_TEMPLATE |
| 66 | |
| 67 | dynamic_suite.reimage_and_run(**args_dict) |