| # Copyright 2016 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.server import utils |
| |
| AUTHOR = "harpreet@chromium.org" |
| NAME = "enterprise_CFM_Perf" |
| TIME = "MEDIUM" |
| TEST_CATEGORY = "Performance" |
| TEST_CLASS = "enterprise" |
| ATTRIBUTES = "suite:hotrod, suite:hotrod-release" |
| TEST_TYPE = "server" |
| JOB_RETRIES = 3 |
| |
| DOC = """ |
| This test enrolls ChromeOS device in to hotrod mode and captures device usage |
| data including cpu, memory and temperature data and uploads it to Google Cloud |
| Storage as part of the test logs. |
| """ |
| |
| args_dict = utils.args_to_dict(args) |
| servo_args = hosts.CrosHost.get_servo_arguments(args_dict) |
| |
| def run_test(machine): |
| host = hosts.create_host(machine, servo_args=servo_args) |
| job.run_test('enterprise_CFM_Perf', host=host) |
| |
| parallel_simple(run_test, machines) |