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 Firmware EngProd team' 9NAME = 'tast.firmware-smoke' 10TIME = 'MEDIUM' 11TEST_TYPE = 'Server' 12DEPENDENCIES = 'servo_state:WORKING' 13ATTRIBUTES = 'suite:faft_smoke' 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 Tast tests for basic firmware functionality. 23 24The tests are part of 'group:firmware'. The 'firmware_smoke' sub-attribute 25limits it to basic smoke-tests. 26 27Excludes tests with 'firmware_usb' sub-attribute, the firmware-smoke_usb 28control file will run those. 29 30Tast is an integration-testing framework analagous to the test-running portion 31of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ 32for more information. 33 34See http://go/tast-failures for information about investigating failures. 35''' 36 37command_args, varslist = tast.split_arguments(args) 38args_dict = utils.args_to_dict(command_args) 39assert 'servo_state:WORKING' in DEPENDENCIES 40servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 41 42def run(machine): 43 job.run_test('tast', 44 host=hosts.create_host(machine, servo_args=servo_args), 45 # TODO(b/188712428): Clean this up when TAST is fully 46 # supported by test-exec-service 47 test_exprs=['("group:firmware" && firmware_smoke && !firmware_usb)'], 48 ignore_test_failures=True, max_run_sec=10800, 49 command_args=command_args, 50 varslist=varslist) 51 52parallel_simple(run, machines) 53