# Copyright 2020 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.

# This file has been automatically generated. Do not edit!

AUTHOR = 'ARC++ Team'
NAME = 'cheets_VTS_R.11_r1.arm.vts_permission_validate_test'
ATTRIBUTES = 'suite:arc-cts-r'
DEPENDENCIES = 'arc, cts_abi_arm'
JOB_RETRIES = 1
TEST_TYPE = 'server'
TIME = 'MEDIUM'
MAX_RESULT_SIZE_KB = 512000
DOC = 'Run module vts_permission_validate_test of the Vendor Test Suite (VTS) using arm ABI in the ARC++ container.'

def run_TS(machine):
    host_list = [hosts.create_host(machine)]
    job.run_test(
        'cheets_VTS_R',
        hosts=host_list,
        iterations=1,
        tag='11_r1.arm.vts_permission_validate_test',
        test_name='cheets_VTS_R.11_r1.arm.vts_permission_validate_test',
        run_template=['run', 'commandAndExit', 'vts', '--module', 'vts_permission_validate_test', '--logcat-on-failure'],
        retry_template=['run', 'commandAndExit', 'retry', '--retry', '{session_id}'],
        target_module='vts_permission_validate_test',
        target_plan=None,
        bundle='arm',
        use_jdk9=True,
        timeout=3600)

parallel_simple(run_TS, machines)
