1# Copyright 2018 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 = "mruthven" 8NAME = "servo_ConsoleStress.cr50" 9PURPOSE = "Verify cr50 console." 10TIME = "SHORT" 11TEST_TYPE = "server" 12DEPENDENCIES = "servo_state:WORKING" 13PY_VERSION = 3 14 15DOC = """Run the control a bunch. Make sure the output doesn't change 16 17This can be used to verify the console the control uses. The more output the 18control gets, the faster this test will detect errors. 19""" 20if 'args_dict' not in locals(): 21 args_dict = {} 22 23args_dict.update(utils.args_to_dict(args)) 24servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 25 26def run(machine): 27 host = hosts.create_host(machine, servo_args=servo_args) 28 29 iterations = int(args_dict.get("iterations", 1)) 30 attempts = int(args_dict.get("attempts", 1000)) 31 cmd_type = args_dict.get("cmd_type", "cr50") 32 cmd = args_dict.get("cmd", "pinmux") 33 34 job.run_test("servo_ConsoleStress", host=host, cmdline_args=args, 35 full_args=args_dict, iterations=iterations, 36 attempts=attempts, cmd_type=cmd_type, cmd=cmd) 37 38parallel_simple(run, machines) 39