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.informational-android-shard-2' 9TIME = 'MEDIUM' 10TEST_TYPE = 'Server' 11DEPENDENCIES = 'servo_state:WORKING' 12ATTRIBUTES = 'suite:bvt-tast-informational, suite:chrome-informational' 13MAX_RESULT_SIZE_KB = 1024 * 1024 14PY_VERSION = 3 15JOB_RETRIES = 0 # Do not retry informational tests. 16 17# tast.py uses binaries installed from autotest_server_package.tar.bz2. 18REQUIRE_SSP = True 19 20DOC = ''' 21Run the Tast informational ARC test suite. 22 23Tast is an integration-testing framework analagous to the test-running portion 24of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for 25more information. 26 27This test runs Android-dependent Tast-based informational tests against a remote 28DUT. It only reports failure if the tast process itself (rather than individual 29Tast tests) fails. 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 job.run_test('tast', 41 host=hosts.create_host(machine, servo_args=servo_args), 42 test_exprs=['(' 43 '"group:mainline" && ' 44 'informational && ' 45 '!"name:crostini.*" && ' 46 '"dep:android*"' 47 ')'], 48 ignore_test_failures=True, 49 max_run_sec=3*60*60, 50 totalshards=3, 51 shardindex=2, 52 command_args=args, 53 clear_tpm=True) 54 55parallel_simple(run, machines) 56