1*9c5db199SXin Li# Copyright 2021 The Chromium OS Authors. All rights reserved. 2*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be 3*9c5db199SXin Li# found in the LICENSE file. 4*9c5db199SXin Li 5*9c5db199SXin Lifrom autotest_lib.client.common_lib import utils 6*9c5db199SXin Li 7*9c5db199SXin LiAUTHOR = 'Chromium OS team' 8*9c5db199SXin LiNAME = 'tast.tast-timeout' 9*9c5db199SXin LiTIME = 'SHORT' 10*9c5db199SXin LiTEST_TYPE = 'Server' 11*9c5db199SXin Li# Uncomment the following line for CQ testing 12*9c5db199SXin Li#ATTRIBUTES = 'suite:bvt-tast-cq' 13*9c5db199SXin LiMAX_RESULT_SIZE_KB = 256 * 1024 14*9c5db199SXin LiPY_VERSION = 3 15*9c5db199SXin Li 16*9c5db199SXin Li# tast.py uses binaries installed from autotest_server_package.tar.bz2. 17*9c5db199SXin LiREQUIRE_SSP = True 18*9c5db199SXin Li 19*9c5db199SXin LiDOC = ''' 20*9c5db199SXin LiSimulate a tast timeout in the middle of the running tast tests. 21*9c5db199SXin Li 22*9c5db199SXin Li''' 23*9c5db199SXin Li 24*9c5db199SXin Lidef run(machine): 25*9c5db199SXin Li job.run_test('tast', 26*9c5db199SXin Li host=hosts.create_host(machine), 27*9c5db199SXin Li test_exprs=['(' 28*9c5db199SXin Li '"group:mainline" && ' 29*9c5db199SXin Li '"name:example.*"' 30*9c5db199SXin Li ')'], 31*9c5db199SXin Li ignore_test_failures=False, max_run_sec=120, 32*9c5db199SXin Li command_args=args, 33*9c5db199SXin Li clear_tpm=False) 34*9c5db199SXin Li 35*9c5db199SXin Liparallel_simple(run, machines) 36