xref: /aosp_15_r20/external/autotest/server/site_tests/firmware_Bmpblk/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2018 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
5AUTHOR = "jwerner"
6NAME = "firmware_Bmpblk"
7PURPOSE = "Check that the firmware screens have been correctly configured"
8CRITERIA = "This test will fail if firmware screens have not been explicitly scaled for this device"
9ATTRIBUTES = "suite:faft_bios, suite:faft_bios_ro_qual, suite:faft_bios_rw_qual, suite:faft_normal, suite:faft_lv4, suite:faft_bios_tot, suite:distributed_lab_qual_faft"
10DEPENDENCIES = "servo_state:WORKING"
11TIME = "SHORT"
12TEST_CATEGORY = "Functional"
13TEST_CLASS = "firmware"
14TEST_TYPE = "server"
15JOB_RETRIES = 0
16PY_VERSION = 3
17
18DOC = """
19This test checks whether the BIOS was built with a correctly configured bmpblk
20to ensure crisp firmware screen images and text. The bmpblk for every device
21needs to be explicitly configured for the device's screen resolution to ensure
22optimal quality. Relies on flashrom and cbfstool to inspect the BIOS image.
23"""
24
25from autotest_lib.client.common_lib import utils
26
27args_dict = utils.args_to_dict(args)
28servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
29
30def run_bmpblk(machine):
31    host = hosts.create_host(machine, servo_args=servo_args)
32    job.run_test('firmware_Bmpblk', host=host, cmdline_args=args)
33
34parallel_simple(run_bmpblk, machines)
35