42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
# Copyright 2020 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
from autotest_lib.server import utils
|
|
|
|
AUTHOR = "Chrome OS Team"
|
|
NAME = "servo_Verification.local"
|
|
PURPOSE = "Ensure a dut/servo pair provide required lab functionality."
|
|
ATTRIBUTES = "suite:servo_verification"
|
|
TIME = "MEDIUM"
|
|
TEST_CATEGORY = "Benchmark"
|
|
TEST_CLASS = "platform"
|
|
TEST_TYPE = "server"
|
|
|
|
DOC = """
|
|
The local version of servo_Verification. Local in this context means that
|
|
for the tests that require an image to be placed on the usb stick to run
|
|
the test will assume an image is already present, and not attempt to download
|
|
and image itself.
|
|
|
|
For more details, please see the DOC section in the file 'control'.
|
|
|
|
Sample usage:
|
|
test_that <dut ip> servo_Verification.local --args "servo_host=<labstation ip>
|
|
servo_port=<port on labstation>"
|
|
"""
|
|
# Workaround to make it compatible with moblab autotest UI.
|
|
global args_dict
|
|
try:
|
|
args_dict
|
|
except NameError:
|
|
args_dict = utils.args_to_dict(args)
|
|
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
|
|
|
|
def run(machine):
|
|
host = hosts.create_host(machine, servo_args=servo_args)
|
|
job.run_test("servo_Verification", host=host, disable_sysinfo=True,
|
|
local=True)
|
|
|
|
parallel_simple(run, machines)
|