# Copyright 2018 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_CTS_P.x86.CtsSecurityHostTestCases'
ATTRIBUTES = 'suite:cts_P'
DEPENDENCIES = 'arc, cts_abi_x86'
JOB_RETRIES = 1
TEST_TYPE = 'server'
TIME = 'MEDIUM'
MAX_RESULT_SIZE_KB = 512000
PRIORITY = 50
DOC = 'Run module CtsSecurityHostTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'

def run_CTS(machine):
    host_list = [hosts.create_host(machine)]
    job.run_test(
        'cheets_CTS_P',
        hosts=host_list,
        iterations=1,
        max_retry=10,
        needs_push_media=False,
        tag='x86.CtsSecurityHostTestCases',
        test_name='cheets_CTS_P.x86.CtsSecurityHostTestCases',
        run_template=['run', 'commandAndExit', 'cts', '--include-filter', 'CtsSecurityHostTestCases'],
        retry_template=['run', 'commandAndExit', 'retry', '--retry', '{session_id}'],
        target_module='CtsSecurityHostTestCases',
        target_plan=None,
        bundle='x86',
        precondition_commands=['echo 3 > /proc/sys/kernel/perf_event_paranoid', 'modprobe configs'],
        retry_manual_tests=True,
        warn_on_test_retry=False,
        timeout=5400)

parallel_simple(run_CTS, machines)