xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.firmware-cr50 (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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
6from autotest_lib.server.site_tests.tast import tast
7
8AUTHOR = 'Chromium OS team'
9NAME = 'tast.firmware-cr50'
10TIME = 'MEDIUM'
11TEST_TYPE = 'Server'
12DEPENDENCIES = 'servo_state:WORKING'
13ATTRIBUTES = 'suite:faft_cr50_prepvt, suite:faft_cr50_pvt'
14MAX_RESULT_SIZE_KB = 1024 * 1024
15PY_VERSION = 3
16JOB_RETRIES = 0
17
18# tast.py uses binaries installed from autotest_server_package.tar.bz2.
19REQUIRE_SSP = True
20
21DOC = '''
22Run the Tast tests for Google Security Chip firmware (Cr50).
23
24The tests are part of 'group:firmware', and the 'firmware_cr50' sub-attribute
25limits it to those that cover the Google Security Chip.
26
27Tast is an integration-testing framework analogous to the test-running portion
28of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/
29for more information.
30
31See http://go/tast-failures for information about investigating failures.
32'''
33
34command_args, varslist = tast.split_arguments(args)
35args_dict = utils.args_to_dict(command_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=['("group:firmware" && firmware_cr50 && !firmware_ccd)'],
43                 ignore_test_failures=True, max_run_sec=10800,
44                 command_args=command_args,
45                 varslist=varslist)
46
47parallel_simple(run, machines)
48