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 Firmware EngProd team' 8NAME = 'tast.firmware-smoke' 9TIME = 'MEDIUM' 10TEST_TYPE = 'Server' 11DEPENDENCIES = 'servo_state:WORKING' 12ATTRIBUTES = 'suite:faft_smoke' 13MAX_RESULT_SIZE_KB = 1024 * 1024 14 15# tast.py uses binaries installed from autotest_server_package.tar.bz2. 16REQUIRE_SSP = True 17 18DOC = ''' 19Run Tast tests for basic firmware functionality. 20 21The tests are part of 'group:firmware'. The 'firmware_smoke' sub-attribute 22limits it to basic smoke-tests. 23 24Tast is an integration-testing framework analagous to the test-running portion 25of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ 26for more information. 27 28See http://go/tast-failures for information about investigating failures. 29''' 30 31args_dict = utils.args_to_dict(args) 32assert 'servo_state:WORKING' in DEPENDENCIES 33servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 34 35def run(machine): 36 job.run_test('tast', 37 host=hosts.create_host(machine, servo_args=servo_args), 38 test_exprs=['("group:firmware" && firmware_smoke)'], 39 ignore_test_failures=True, max_run_sec=10800, 40 command_args=args) 41 42parallel_simple(run, machines) 43