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 import utils
6
7AUTHOR = "Chrome OS Team"
8NAME = "firmware_FingerprintSigner.fsi"
9PURPOSE = """
10Verify that the signer ID is correct
11"""
12CRITERIA = """
13Fails if the on-disk fingerprint firmware image is signed with keys that aren't MP.
14"""
15TIME = "SHORT"
16TEST_CATEGORY = "Functional"
17TEST_CLASS = "firmware"
18TEST_TYPE = "server"
19DEPENDENCIES = "fingerprint"
20JOB_RETRIES = 0
21
22DOC = """
23This test makes sure the firmware stored in the OS image is signed with MP keys,
24not pre-MP or dev.  It is intended to be run as part of the FSI process.
25"""
26
27args_dict = utils.args_to_dict(args)
28servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
29
30def run(machine):
31    host = hosts.create_host(machine, servo_args=servo_args)
32    job.run_test("firmware_FingerprintSigner", host=host, fsi=True)
33
34parallel_simple(run, machines)
35