1# Copyright 2018 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 = "wangmichael@chromium.org" 6NAME = "cts" 7PURPOSE = "Special suite for final CTS qualification of ARC++ on stable." 8CRITERIA = "All tests with SUITE=cts must pass." 9 10TIME = "LONG" 11TEST_CATEGORY = "General" 12TEST_CLASS = "suite" 13TEST_TYPE = "Server" 14 15DOC = """ 16ChromeOS ARC++ tests. 17""" 18 19import common 20from autotest_lib.server.cros.dynamic_suite import dynamic_suite 21 22 23def predicate(test): 24 if not hasattr(test, 'suite') or not hasattr(test, 'name'): 25 return False 26 if not NAME in test.suite.split(','): 27 return False 28 # Strip off the cheets_CTS. from the test name before comparing to args 29 name = test.name[test.name.find('.') + 1:] 30 if 'tests' in args_dict and name not in args_dict['tests']: 31 return False 32 return True 33 34args_dict['name'] = NAME 35args_dict['job'] = job 36args_dict['file_bugs'] = False 37args_dict['max_runtime_mins'] = 10080 38args_dict['timeout_mins'] = 10080 39args_dict['add_experimental'] = True 40args_dict['predicate'] = predicate 41dynamic_suite.reimage_and_run(**args_dict) 42 43