You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
932 B
35 lines
932 B
# 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.3loops"
|
|
PURPOSE = "Verify that Servo can change PD role"
|
|
TIME = "SHORT"
|
|
TEST_CATEGORY = "Benchmark"
|
|
TEST_CLASS = "power"
|
|
TEST_TYPE = "server"
|
|
DEPENDENCIES = "servo_state:WORKING"
|
|
|
|
DOC = """
|
|
Verify that Servo can change 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=3, sleep=5,
|
|
tag=NAME.split('.')[1])
|
|
|
|
parallel_simple(run, machines)
|