xref: /aosp_15_r20/external/autotest/server/site_tests/servo_Verification/control.local (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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 = "ChromeOS 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"
15PY_VERSION = 3
16
17DOC = """
18The local version of servo_Verification. Local in this context means that
19for the tests that require an image to be placed on the usb stick to run
20the test will assume an image is already present, and not attempt to download
21and image itself.
22
23For more details, please see the DOC section in the file 'control'.
24
25Sample usage:
26test_that <dut ip> servo_Verification.local --args "servo_host=<labstation ip>
27                                              servo_port=<port on labstation>"
28"""
29# Workaround to make it compatible with moblab autotest UI.
30global args_dict
31try:
32    args_dict
33except NameError:
34    args_dict = utils.args_to_dict(args)
35servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
36
37def run(machine):
38    host = hosts.create_host(machine, servo_args=servo_args)
39    job.run_test("servo_Verification", host=host, disable_sysinfo=True,
40                 local=True)
41
42parallel_simple(run, machines)
43