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 5AUTHOR = "ChromeOS PVS Team" 6NAME = "pvs-bvt-inline" 7PURPOSE = "Test critical functionality." 8 9TIME = "SHORT" 10TEST_CATEGORY = "General" 11TEST_CLASS = "suite" 12TEST_TYPE = "Server" 13 14DOC = """ 15This is the portion of the Build Verification Test suite required 16to pass before any other tests may run. Test failures in this 17suite 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 24Requirements 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. 34 4. The test must be hermetic. That is, the test should have no 35 dependencies on external network resources. 36 5. (added for pvs-* suite) must not access internal resources or be 37 dependent on Moblab execution 38 39@param build: The name of the image to test. 40 Ex: x86-mario-release/R17-1412.33.0-a1-b29 41@param board: The board to test on. Ex: x86-mario 42@param pool: The pool of machines to utilize for scheduling. If pool=None 43 board is used. 44@param check_hosts: require appropriate live hosts to exist in the lab. 45@param SKIP_IMAGE: (optional) If present and True, don't re-image devices. 46""" 47 48import common 49from autotest_lib.server.cros.dynamic_suite import dynamic_suite 50 51 52# Values specified in this bug template will override default values when 53# filing bugs on tests that are a part of this suite. If left unspecified 54# the bug filer will fallback to it's defaults. 55_BUG_TEMPLATE = { 56 'labels': ['bvt'], 57 'owner': '', 58 'status': None, 59 'summary': None, 60 'title': None, 61} 62 63args_dict['max_runtime_mins'] = 30 64args_dict['name'] = 'pvs-bvt-inline' 65args_dict['job'] = job 66args_dict['add_experimental'] = True 67args_dict['bug_template'] = _BUG_TEMPLATE 68 69dynamic_suite.reimage_and_run(**args_dict) 70