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_ec3po, suite:faft_bios_tot" 10DEPENDENCIES = "servo_state:WORKING" 11TIME = "SHORT" 12TEST_CATEGORY = "Functional" 13TEST_CLASS = "firmware" 14TEST_TYPE = "server" 15JOB_RETRIES = 4 16 17DOC = """ 18This test checks whether the BIOS was built with a correctly configured bmpblk 19to ensure crisp firmware screen images and text. The bmpblk for every device 20needs to be explicitly configured for the device's screen resolution to ensure 21optimal quality. Relies on flashrom and cbfstool to inspect the BIOS image. 22""" 23 24from autotest_lib.client.common_lib import utils 25 26args_dict = utils.args_to_dict(args) 27servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 28 29def run_bmpblk(machine): 30 host = hosts.create_host(machine, servo_args=servo_args) 31 job.run_test('firmware_Bmpblk', host=host, cmdline_args=args) 32 33parallel_simple(run_bmpblk, machines) 34