xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.critical-system-shard-0 (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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-system-shard-0'
9TIME = 'MEDIUM'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'servo_state:WORKING'
12# System tests can't be broken by Android or Chrome changes, so these tests
13# don't run in the PFQs.
14ATTRIBUTES = 'suite:bvt-tast-cq, 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 system 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 non-Chrome-dependent and non-Android-dependent Tast-based tests
29that are required to pass against a remote DUT. It fails if any individual Tast
30tests fail.
31
32See http://go/tast-failures for information about investigating failures.
33'''
34
35args_dict = utils.args_to_dict(args)
36assert 'servo_state:WORKING' in DEPENDENCIES
37servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
38
39def run(machine):
40    job.run_test('tast',
41                 host=hosts.create_host(machine, servo_args=servo_args),
42                 test_exprs=['('
43                             '"group:mainline" && '
44                             '!informational && '
45                             '!"dep:chrome" && '
46                             '!"name:crostini.*" && '
47                             '!"dep:android*"'
48                             ')'],
49                 ignore_test_failures=False, max_run_sec=3600,
50                 totalshards=3,
51                 shardindex=0,
52                 command_args=args,
53                 clear_tpm=True,
54                 retries=2)
55
56parallel_simple(run, machines)
57