1# Copyright 2020 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.cros.faft.fingerprint_test import FingerprintTest
6
7
8class firmware_FingerprintSigner(FingerprintTest):
9    """
10    This test does minimal initialization, only checking the firmware file.
11    """
12    version = 1
13
14    def run_once(self, fsi=False):
15        """Run the test: verify that the key is MP (or pre-MP, if not FSI)"""
16        allowed_types = [self._KEY_TYPE_MP]
17        if not fsi:
18            allowed_types += [self._KEY_TYPE_PRE_MP]
19        self.validate_build_fw_file(allowed_types=allowed_types)
20