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 = "coconutruben" 8NAME = "servo_LabControlVerification" 9PURPOSE = "Validate basic, critical servo controls for the lab work." 10TIME = "LONG" 11CRITERIA="Run on DUT with a servo attached and a functional DUT on the servo." 12TEST_CATEGORY = "Benchmark" 13TEST_CLASS = "servo" 14TEST_TYPE = "server" 15PY_VERSION = 3 16 17DOC = """ 18 19This test uses a servo host as DUT and then verifies that basic servod 20controls work on it, that are required for critical lab functionality. 21Additionally, it tries to ensure that all consoles (cr50, EC, and AP) are 22addressable. 23 24This test needs to run on a device that has a servo attached to it so 25it can act as a servo host. Additionally, a decently functional DUT needs to 26hang on the servo so that the controls can have meaningful output. 27""" 28 29def run(machine): 30 # The machine here is the machine running servod, so traditionally the 31 # servo host. 32 host = hosts.create_host(machine) 33 job.run_test("servo_LabControlVerification", host=host) 34 35parallel_simple(run, machines) 36