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