blob: 1e06b641a3e11f069a052ee981278aadf0c8c3a9 [file] [log] [blame]
# Copyright 2019 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 = "mqg"
NAME = "power_ServoChargeStress.100loops"
PURPOSE = "Stress test Servo changing PD role"
TIME = "LONG"
TEST_CATEGORY = "Benchmark"
TEST_CLASS = "power"
TEST_TYPE = "server"
DEPENDENCIES = "servo_state:WORKING"
DOC = """
Stress test Servo changing PD role.
"""
# Workaround to make it compatible with moblab autotest UI.
global args_dict
try:
args_dict
except NameError:
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test("power_ServoChargeStress", host=host, total_loops=100, sleep=5,
tag=NAME.split('.')[1])
parallel_simple(run, machines)