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-chrome-shard-1' 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 Chrome 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 Chrome-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:chrome" && ' 47 '!"dep:android*"' 48 ')'], 49 ignore_test_failures=True, 50 max_run_sec=4*60*60, 51 totalshards=3, 52 shardindex=1, 53 command_args=args, 54 clear_tpm=True) 55 56parallel_simple(run, machines) 57