1# Copyright (c) 2016 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 = "firmware_FAFTSetup" 9PURPOSE = "Servo based diagnose of FAFT hardware setup" 10CRITERIA = "This test will fail if FAFT hardware is not set up correctly." 11# This test cannot be added to suite:infra_qual due to unreliability of 12# interaction with USB sticks in the ChromeOS CQ device environment. 13ATTRIBUTES = "suite:faft_bios, suite:faft_bios_ro_qual, suite:faft_bios_rw_qual, suite:faft_lab, suite:faft_lv2, suite:faft_normal, suite:faft_bios_tot, suite:faft_setup, suite:labqual, suite:servo_lab" 14DEPENDENCIES = "servo_state:WORKING, servo_usb_state:NORMAL" 15TIME = "SHORT" 16TEST_CATEGORY = "Functional" 17TEST_CLASS = "firmware" 18TEST_TYPE = "server" 19JOB_RETRIES = 0 20PY_VERSION = 3 21 22DOC = """ 23This test checks the following FAFT hardware requirement: 24 - Warm reset 25 - Cold reset 26 - Recovery boot with USB stick 27 - USB stick is plugged into Servo board, not DUT 28 - Keyboard simulation 29 30If this test is run with parameter -a "spec_check=True", then hardware 31testability is checked according to spec and without any current 32workaround. 33 - Strict keyboard simulation 34 - Recovery mode with dedicated recovery signal 35""" 36 37args_dict = utils.args_to_dict(args) 38servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 39 40def run_faftsetup(machine): 41 host = hosts.create_host(machine, servo_args=servo_args) 42 job.run_test("firmware_FAFTSetup", host=host, cmdline_args=args, 43 disable_sysinfo=True) 44 45parallel_simple(run_faftsetup, machines) 46