1# Copyright 2021 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_ccd' 10TIME = 'MEDIUM' 11TEST_TYPE = 'Server' 12DEPENDENCIES = 'servo_state:WORKING, servo_component:ccd_cr50' 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. Additionally the 26'firmware_ccd' attribute limits this to tests that require CCD. 27 28Tast is an integration-testing framework analogous to the test-running portion 29of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ 30for more information. 31 32See http://go/tast-failures for information about investigating failures. 33''' 34 35command_args, varslist = tast.split_arguments(args) 36args_dict = utils.args_to_dict(command_args) 37assert 'servo_state:WORKING' in DEPENDENCIES 38servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 39 40def run(machine): 41 job.run_test('tast', 42 host=hosts.create_host(machine, servo_args=servo_args), 43 test_exprs=['("group:firmware" && firmware_cr50 && firmware_ccd)'], 44 ignore_test_failures=True, max_run_sec=10800, 45 command_args=command_args, 46 varslist=varslist) 47 48parallel_simple(run, machines) 49