1# Copyright (c) 2020 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from autotest_lib.client.common_lib import utils 6 7AUTHOR = "zhizhouy@chromium.org, chromeos-toolchain@google.com" 8NAME = "crosperf_Wrapper" 9TIME = "LONG" 10TEST_CATEGORY = "Benchmark" 11TEST_CLASS = "performance" 12TEST_TYPE = "server" 13JOB_RETRIES = 0 14 15DOC = """ 16This wraps up various performance client tests under the crosperf script. 17This is part of Chrome OS Toolchain testing platform. 18This is only used by crosperf to run a client test on certain device. 19""" 20 21# Put the args into the args_dict. 22args_dict = utils.args_to_dict(args) 23 24def run_crosperf_Wrapper(machine): 25 dut = hosts.create_host(machine) 26 job.run_test('crosperf_Wrapper', 27 test_name=args_dict.get('test', ''), 28 test_args=args_dict.get('test_args', ''), 29 dut_config_str=args_dict.get('dut_config', ''), 30 dut=dut) 31 32# run the test in multiple machines 33 34job.parallel_simple(run_crosperf_Wrapper, machines) 35 36