• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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.server import utils
6
7AUTHOR = "mqg"
8NAME = "power_ServoChargeStress.100loops"
9PURPOSE = "Stress test Servo changing PD role"
10TIME = "LONG"
11TEST_CATEGORY = "Benchmark"
12TEST_CLASS = "power"
13TEST_TYPE = "server"
14DEPENDENCIES = "servo"
15
16DOC = """
17Stress test Servo changing PD role.
18"""
19
20# Workaround to make it compatible with moblab autotest UI.
21global args_dict
22try:
23    args_dict
24except NameError:
25    args_dict = utils.args_to_dict(args)
26
27servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
28
29def run(machine):
30    host = hosts.create_host(machine, servo_args=servo_args)
31    job.run_test("power_ServoChargeStress", host=host, total_loops=100, sleep=5,
32                 tag=NAME.split('.')[1])
33
34parallel_simple(run, machines)
35