1# Copyright 2020 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-crostini-shard-0' 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 15 16# tast.py uses binaries installed from autotest_server_package.tar.bz2. 17REQUIRE_SSP = True 18 19DOC = ''' 20Run the Tast informational Crostini test suite. 21 22Tast is an integration-testing framework analagous to the test-running portion 23of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for 24more information. 25 26This test runs Crostini-dependent Tast-based informational tests against a 27remote DUT. It only reports failure if the tast process itself (rather than 28individual Tast tests) fails. 29 30See http://go/tast-failures for information about investigating failures. 31''' 32 33args_dict = utils.args_to_dict(args) 34assert 'servo_state:WORKING' in DEPENDENCIES 35servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 36 37def run(machine): 38 # TODO(crbug.com/992303): Fix android condition. 39 job.run_test('tast', 40 host=hosts.create_host(machine, servo_args=servo_args), 41 test_exprs=['(' 42 '"group:mainline" && ' 43 'informational && ' 44 '"name:crostini.*"' 45 ')'], 46 ignore_test_failures=True, 47 max_run_sec=3*60*60, 48 totalshards=3, 49 shardindex=0, 50 command_args=args, 51 clear_tpm=True) 52 53parallel_simple(run, machines) 54