1# Copyright 2019 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_LabstationVerification.local" 9PURPOSE = "Ensure labstation images can provide basic lab functionality." 10TIME = "MEDIUM" 11TEST_CATEGORY = "Benchmark" 12TEST_CLASS = "platform" 13TEST_TYPE = "server" 14PY_VERSION = 3 15 16DOC = """ 17The local version of servo_LabstationVerification. Local in this context means 18that for 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: 25 test_that <labstation ip> servo_LabstationVerification.local 26 27 test_that <labstation ip> servo_LabstationVerification.local 28 --args="dut_ip=${DUT_IP}" 29 // To skip DUT ip inferring and use a known DUT ip 30""" 31# Workaround to make it compatible with moblab autotest UI. 32global args_dict 33try: 34 args_dict 35except NameError: 36 args_dict = utils.args_to_dict(args) 37 38def run(machine): 39 host = hosts.create_host(machine) 40 job.run_test("servo_LabstationVerification", host=host, local=True, 41 config=args_dict, disable_sysinfo=True) 42 43parallel_simple(run, machines) 44