1# Copyright 2021 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_MiniDiag" 9PURPOSE = "Servo based MiniDiag firmware boot test" 10CRITERIA = "This test will fail if MiniDiag does not work" 11ATTRIBUTES = "" 12ATTRIBUTES = "suite:faft_bios, suite:faft_bios_ro_qual, suite:faft_bios_rw_qual, suite:faft_lv4, suite:faft_bios_tot" 13DEPENDENCIES = "servo_state:WORKING" 14TIME = "MEDIUM" 15TEST_CATEGORY = "Functional" 16TEST_CLASS = "firmware" 17TEST_TYPE = "server" 18JOB_RETRIES = 4 19PY_VERSION = 3 20 21DOC = """ 22This test checks the MiniDiag (pre-boot diagnostics) firmware boot. 23This test only runs on devices which using menu UI and enable MiniDiag. 24""" 25 26args_dict = utils.args_to_dict(args) 27servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 28 29def run(machine): 30 host = hosts.create_host(machine, servo_args=servo_args) 31 job.run_test("firmware_MiniDiag", host=host, cmdline_args=args, 32 disable_sysinfo=True) 33 34parallel_simple(run, machines) 35