xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.borealis-cq (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.borealis-cq'
9TIME = 'SHORT'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'servo_state:WORKING'
12ATTRIBUTES = 'suite:borealis-cq'
13MAX_RESULT_SIZE_KB = 256 * 1024
14PY_VERSION = 3
15
16DOC = '''
17Run the Tast tests which run in suite:borealis-cq.
18'''
19
20args_dict = utils.args_to_dict(args)
21assert 'servo_state:WORKING' in DEPENDENCIES
22servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
23
24def run(machine):
25    job.run_test('tast',
26                 host=hosts.create_host(machine, servo_args=servo_args),
27                 test_exprs=['("group:borealis" && !informational && borealis_cq)'],
28                 ignore_test_failures=True, max_run_sec=3600,
29                 command_args=args,
30                 retries=2)
31
32parallel_simple(run, machines)
33