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 5from autotest_lib.client.common_lib import utils 6 7AUTHOR = 'Chromium OS team' 8NAME = 'tast.critical-android-shard-0' 9TIME = 'MEDIUM' 10TEST_TYPE = 'Server' 11DEPENDENCIES = 'servo_state:WORKING' 12# Android tests can also be broken by Chrome and OS changes, so these tests need 13# to run in both PFQs and the CQ. 14ATTRIBUTES = 'suite:bvt-tast-cq, suite:bvt-tast-android-pfq, suite:bvt-tast-arc, suite:bvt-tast-chrome-pfq, suite:cft-beta' 15MAX_RESULT_SIZE_KB = 256 * 1024 16PY_VERSION = 3 17 18# tast.py uses binaries installed from autotest_server_package.tar.bz2. 19REQUIRE_SSP = True 20 21DOC = ''' 22Run the Tast must-pass ARC test suite. 23 24Tast is an integration-testing framework analagous to the test-running portion 25of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for 26more information. 27 28This test runs Android-dependent Tast-based tests that are required to pass 29against a remote DUT. It fails if any individual Tast tests fail. 30 31See http://go/tast-failures for information about investigating failures. 32''' 33 34args_dict = utils.args_to_dict(args) 35assert 'servo_state:WORKING' in DEPENDENCIES 36servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 37 38def run(machine): 39 # TODO(crbug.com/992303): Fix android condition. 40 # Make sure if you modify this condition to update ATP side config 41 # in http://cs/file:tast_critical.gcl 42 job.run_test('tast', 43 host=hosts.create_host(machine, servo_args=servo_args), 44 test_exprs=['(' 45 '"group:mainline" && ' 46 '!informational && ' 47 '!"name:crostini.*" && ' 48 '"dep:android*"' 49 ')'], 50 ignore_test_failures=False, max_run_sec=3600, 51 totalshards=3, 52 shardindex=0, 53 command_args=args, 54 clear_tpm=True, 55 retries=2) 56 57parallel_simple(run, machines) 58