• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 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 = "Chrome OS Team"
8NAME = "servo_Verification.local"
9PURPOSE = "Ensure a dut/servo pair provide required lab functionality."
10ATTRIBUTES = "suite:servo_verification"
11TIME = "MEDIUM"
12TEST_CATEGORY = "Benchmark"
13TEST_CLASS = "platform"
14TEST_TYPE = "server"
15
16DOC = """
17The local version of servo_Verification. Local in this context means that
18for the tests that require an image to be placed on the usb stick to run
19the test will assume an image is already present, and not attempt to download
20and image itself.
21
22For more details, please see the DOC section in the file 'control'.
23
24Sample usage:
25test_that <dut ip> servo_Verification.local --args "servo_host=<labstation ip>
26                                              servo_port=<port on labstation>"
27"""
28# Workaround to make it compatible with moblab autotest UI.
29global args_dict
30try:
31    args_dict
32except NameError:
33    args_dict = utils.args_to_dict(args)
34servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
35
36def run(machine):
37    host = hosts.create_host(machine, servo_args=servo_args)
38    job.run_test("servo_Verification", host=host, disable_sysinfo=True,
39                 local=True)
40
41parallel_simple(run, machines)
42