blob: c09905cce892f693b92b4699441a08544a21254d [file] [log] [blame]
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.server.cros.faft.fingerprint_test import FingerprintTest
class firmware_FingerprintSigner(FingerprintTest):
"""
This test does minimal initialization, only checking the firmware file.
"""
version = 1
def run_once(self, fsi=False):
"""Run the test: verify that the key is MP (or pre-MP, if not FSI)"""
allowed_types = [self._KEY_TYPE_MP]
if not fsi:
allowed_types += [self._KEY_TYPE_PRE_MP]
self.validate_build_fw_file(allowed_types=allowed_types)