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 5 from autotest_lib.server import utils 6 7 AUTHOR = "Chrome OS Team" 8 NAME = "firmware_FAFTSetup" 9 PURPOSE = "Servo based diagnose of FAFT hardware setup" 10 CRITERIA = "This test will fail if FAFT hardware is not set up correctly." 11 ATTRIBUTES = "suite:faft, suite:faft_bios, suite:faft_bios_au_1, suite:faft_bios_au_2, suite:faft_bios_au_3, suite:faft_lab, suite:faft_lv2, suite:faft_normal, suite:faft_bios_ec3po, suite:faft_bios_tot, suite:faft_setup" 12 TIME = "SHORT" 13 TEST_CATEGORY = "Functional" 14 TEST_CLASS = "firmware" 15 TEST_TYPE = "server" 16 JOB_RETRIES = 4 17 18 DOC = """ 19 This test checks the following FAFT hardware requirement: 20 - Warm reset 21 - Cold reset 22 - Recovery boot with USB stick 23 - USB stick is plugged into Servo board, not DUT 24 - Keyboard simulation 25 26 If this test is run with parameter -a "spec_check=True", then hardware 27 testability is checked according to spec and without any current 28 workaround. 29 - Strict keyboard simulation 30 - Recovery mode with dedicated recovery signal 31 """ 32 33 args_dict = utils.args_to_dict(args) 34 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 35 36 def run_faftsetup(machine): 37 host = hosts.create_host(machine, servo_args=servo_args) 38 job.run_test("firmware_FAFTSetup", host=host, cmdline_args=args, 39 disable_sysinfo=True) 40 41 parallel_simple(run_faftsetup, machines) 42