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