• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.servo_micro"
9PURPOSE = "Verify servo_micro console."
10TIME = "SHORT"
11TEST_TYPE = "server"
12DEPENDENCIES = "servo_state:WORKING"
13
14DOC = """Run the control a bunch. Make sure the output doesn't change
15
16This can be used to verify the console the control uses. The more output the
17control gets, the faster this test will detect errors.
18"""
19if 'args_dict' not in locals():
20    args_dict = {}
21
22args_dict.update(utils.args_to_dict(args))
23servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
24
25def 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", 5000))
30    cmd_type = args_dict.get("cmd_type", "servo")
31    cmd = args_dict.get("cmd", "servo_micro_version")
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
37parallel_simple(run, machines)
38