• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "ChromeOS Team"
8NAME = "firmware_FingerprintSigner"
9PURPOSE = """
10Verify that the signer ID is correct
11"""
12ATTRIBUTES = "suite:fingerprint"
13CRITERIA = """
14Fails if the on-disk fingerprint firmware image is signed with DEV keys
15"""
16TIME = "SHORT"
17TEST_CATEGORY = "Functional"
18TEST_CLASS = "firmware"
19TEST_TYPE = "server"
20DEPENDENCIES = "fingerprint, servo_state:WORKING"
21JOB_RETRIES = 0
22PY_VERSION = 3
23
24DOC = """
25This variant of firmware_FingerprintSigner requires the on-disk firmware image
26to be signed with pre-MP or MP (since automated runs may use either) keys.
27"""
28
29args_dict = utils.args_to_dict(args)
30servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
31
32def run(machine):
33    host = hosts.create_host(machine, servo_args=servo_args)
34    job.run_test("firmware_FingerprintSigner", host=host, fsi=False)
35
36parallel_simple(run, machines)
37