• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "Chrome OS 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."
11ATTRIBUTES = "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"
12TIME = "SHORT"
13TEST_CATEGORY = "Functional"
14TEST_CLASS = "firmware"
15TEST_TYPE = "server"
16JOB_RETRIES = 4
17
18DOC = """
19This 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
26If this test is run with parameter -a "spec_check=True", then hardware
27testability is checked according to spec and without any current
28workaround.
29  - Strict keyboard simulation
30  - Recovery mode with dedicated recovery signal
31"""
32
33args_dict = utils.args_to_dict(args)
34servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
35
36def 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
41parallel_simple(run_faftsetup, machines)
42