xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.informational-parallels (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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 team'
8NAME = 'tast.informational-parallels'
9TIME = 'MEDIUM'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'servo_state:WORKING'
12ATTRIBUTES = 'suite:bvt-tast-parallels-informational'
13MAX_RESULT_SIZE_KB = 1024 * 1024
14PY_VERSION = 3
15JOB_RETRIES = 0  # Do not retry informational tests.
16
17# tast.py uses binaries installed from autotest_server_package.tar.bz2.
18REQUIRE_SSP = True
19
20DOC = '''
21Run the Tast informational test suite for booted Parallels.
22
23This test may only be run on hardware licensed for specific versions of
24Windows and Office. Contact [email protected] for details.
25
26Tast is an integration-testing framework analagous to the test-running portion
27of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
28more information.
29
30This test runs informational tast tests which use a booted Parallels VM against
31a remote DUT. It only reports failure if the tast process itself (rather than
32individual Tast tests) fails.
33
34See http://go/tast-failures for information about investigating failures.
35'''
36
37args_dict = utils.args_to_dict(args)
38assert 'servo_state:WORKING' in DEPENDENCIES
39servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
40
41def run(machine):
42    # TODO(crbug.com/992303): Fix android condition.
43    job.run_test('tast',
44                 host=hosts.create_host(machine, servo_args=servo_args),
45                 test_exprs=['('
46                             '"group:parallels_mainline" && '
47                             'informational'
48                             ')'],
49                 ignore_test_failures=True,
50                 max_run_sec=3*60*60,
51                 command_args=args,
52                 clear_tpm=True,
53                 varslist=['pita.windowsLicensed=true'])
54
55parallel_simple(run, machines)
56