xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.category-webrtc (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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
6
7AUTHOR = 'Chromium OS team'
8NAME = 'tast.category-webrtc'
9TIME = 'MEDIUM'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'servo_state:WORKING'
12ATTRIBUTES = 'suite:bvt-tast-cq-webrtc'
13MAX_RESULT_SIZE_KB = 256 * 1024
14PY_VERSION = 3
15
16# tast.py uses binaries installed from autotest_server_package.tar.bz2.
17REQUIRE_SSP = True
18
19DOC = '''
20Run the critical Tast tests in the "webrtc" category.
21
22Tast is an integration-testing framework analagous to the test-running portion
23of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
24more information.
25
26This test runs Tast tests in the "webrtc" category that are required to pass
27against a remote DUT. It fails if any individual Tast tests fail.
28
29See http://go/tast-failures for information about investigating failures.
30'''
31
32args_dict = utils.args_to_dict(args)
33assert 'servo_state:WORKING' in DEPENDENCIES
34servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
35
36def run(machine):
37    job.run_test('tast',
38                 host=hosts.create_host(machine, servo_args=servo_args),
39                 test_exprs=['('
40                             '"group:mainline" && '
41                             '!informational && '
42                             '"name:webrtc.*"'
43                             ')'],
44                 ignore_test_failures=False, max_run_sec=1800,
45                 command_args=args,
46                 clear_tpm=True,
47                 retries=2)
48
49parallel_simple(run, machines)
50