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 = "Chrome OS Team" 6NAME = "bvt-cq" 7PURPOSE = "Test functionality required by the Commit Queue." 8CRITERIA = "All tests with SUITE=bvt-cq 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 to 17pass the Chrome OS Commit Queue and Pre-Flight Queue. Test failures 18prevent code from being included in the tree or in canary builds: 19 * Chrome OS CLs must pass these tests prior to being accepted into 20 the tree. 21 * A new Chrome build must pass these tests prior to the build 22 being included in a Chrome OS canary build. 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 that the product is not fit for 28 release on any channel. 29 3. A test failure must reliably indicate a bug in the product, and 30 not a bug in the test. 31 32@param build: The name of the image to test. 33 Ex: x86-mario-release/R17-1412.33.0-a1-b29 34@param board: The board to test on. Ex: x86-mario 35@param pool: The pool of machines to utilize for scheduling. If pool=None 36 board is used. 37@param check_hosts: require appropriate live hosts to exist in the lab. 38@param SKIP_IMAGE: (optional) If present and True, don't re-image devices. 39""" 40 41import common 42from autotest_lib.server.cros import provision 43from autotest_lib.server.cros.dynamic_suite import dynamic_suite 44 45 46# Values specified in this bug template will override default values when 47# filing bugs on tests that are a part of this suite. If left unspecified 48# the bug filer will fallback to it's defaults. 49_BUG_TEMPLATE = { 50 'labels': ['bvt'], 51 'owner': '', 52 'status': None, 53 'summary': None, 54 'title': None, 55 'ccs': ['chromeos-lab-errors@google.com'] 56} 57 58args_dict['max_runtime_mins'] = 20 59args_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) 66