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