blob: 54f9593e6dd6496bfc29e49c4d8d17767aa1cab8 [file] [log] [blame]
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The following library is not need because this test
# is intented to run in the developer environment only.
# from autotest_lib.client.common_lib import utils
AUTHOR = 'seewaifu'
NAME = 'tast.companion_dut_manual'
METADATA = {
'contacts': ['tauto-core@google.com'],
'bug_component': 'b:1034523', # ChromeOS > Test > Harness > Tauto
'criteria': 'Tauto wrapper for specified tast tests',
}
TIME = 'SHORT'
TEST_TYPE = 'Server'
# The following DEPENDENCIES variable is not appliable this test
# because this test is intented to run in the developer environment only.
# DEPENDENCIES = 'servo_state:WORKING'
#
# The following ATTRIBUTES variable is not appliable this test
# because this test is intented to run in the developer environment only.
# This test should not be run in any CQ.
# ATTRIBUTES = 'suite:bvt-tast-cq, suite:cft-nightly'
MAX_RESULT_SIZE_KB = 256 * 1024
PY_VERSION = 3
# tast.py uses binaries installed from autotest_server_package.tar.bz2.
REQUIRE_SSP = True
DOC = '''
Verify the companion dut flag reaches Tast.
'''
# Since we are not using servo for this test, we do not need following
# three lines.
# args_dict = utils.args_to_dict(args)
# assert 'servo_state:WORKING' in DEPENDENCIES
# servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
companions = hosts.create_companion_hosts(companion_hosts)
job.run_test('tast',
# We do not need to specify servo_args because we only
# run this test in developer environment.
# host=hosts.create_host(machine, servo_args=servo_args),
host=hosts.create_host(machine),
test_exprs=['meta.CompanionDUTs'],
ignore_test_failures=False, max_run_sec=1800,
companion_duts={'cd1':companions[0], 'cd2':companions[1]},
command_args=args,
# setting clear_tpm to False because we only run this test
# in developer environment.
clear_tpm=False)
parallel_simple(run, machines)