xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.companion-dut-manual (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
5# The following library is not need because this test
6# is intented to run in the developer environment only.
7# from autotest_lib.client.common_lib import utils
8
9AUTHOR = 'seewaifu'
10NAME = 'tast.companion_dut_manual'
11TIME = 'SHORT'
12TEST_TYPE = 'Server'
13# The following DEPENDENCIES variable is not appliable this test
14# because this test is intented to run in the developer environment only.
15# DEPENDENCIES = 'servo_state:WORKING'
16#
17# The following ATTRIBUTES variable is not appliable this test
18# because this test is intented to run in the developer environment only.
19# This test should not be run in any CQ.
20# ATTRIBUTES = 'suite:bvt-tast-cq'
21MAX_RESULT_SIZE_KB = 256 * 1024
22PY_VERSION = 3
23
24# tast.py uses binaries installed from autotest_server_package.tar.bz2.
25REQUIRE_SSP = True
26
27DOC = '''
28Verify the companion dut flag reaches Tast.
29'''
30
31# Since we are not using servo for this test, we do not need following
32# three lines.
33# args_dict = utils.args_to_dict(args)
34# assert 'servo_state:WORKING' in DEPENDENCIES
35# servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
36
37def run(machine):
38    companions = hosts.create_companion_hosts(companion_hosts)
39    job.run_test('tast',
40                 # We do not need to specify servo_args because we only
41                 # run this test in developer environment.
42                 # host=hosts.create_host(machine, servo_args=servo_args),
43                 host=hosts.create_host(machine),
44                 test_exprs=['meta.CompanionDUTs'],
45                 ignore_test_failures=False, max_run_sec=1800,
46                 companion_duts={'cd1':companions[0], 'cd2':companions[1]},
47                 command_args=args,
48                 # setting clear_tpm to False because we only run this test
49                 # in developer environment.
50                 clear_tpm=False)
51
52parallel_simple(run, machines)
53