blob: 1421c3ccc4eedff543dfc908a8135a8e357c0f85 [file] [log] [blame]
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.common_lib import utils
AUTHOR = 'abergman, chromeos-engprod-platform-syd'
NAME = 'VideoCUJ_04'
ATTRIBUTES = 'suite:performance_cuj'
TIME = 'long'
TEST_CATEGORY = 'Stress'
TEST_CLASS = 'Hardware'
TEST_TYPE = 'Server'
PRIORITY = 493
MAX_RESULT_SIZE_KB = 1024 * 1024
JOB_RETRIES = 0
REQUIRE_SSP = True
DOC = '''
Run the Tast-based MTBF performance CUJ test.
Tast is an integration-testing framework analogous to the test-running portion
of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
more information.
See http://go/tast-failures for information about investigating failures.
'''
import tempfile
import yaml
def run(machine):
args_dict = globals().get('args_dict', dict())
with tempfile.NamedTemporaryFile(suffix='.yaml') as temp_file:
# Writing test arguments to yaml file except for wrapper-related arguments.
test_args = dict()
for key in args_dict:
if key.startswith('tast_'):
test_args[key] = args_dict[key]
yaml.dump(test_args, stream=temp_file, default_flow_style=False)
job.run_test('tast',
host=hosts.create_host(machine),
test_exprs=['ui.VideoCUJ'],
ignore_test_failures=False,
max_run_sec=3600,
command_args=args,
varsfiles=[temp_file.name])
parallel_simple(run, machines)