• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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_Fingerprint.AddEntropy"
9PURPOSE = """
10Verify that the add_entropy behavior works correctly.
11"""
12CRITERIA = """
13Fails if we can add entropy from RW or cannot add entropy from RO."
14"""
15ATTRIBUTES = "suite:fingerprint"
16TIME = "SHORT"
17TEST_CATEGORY = "Functional"
18TEST_CLASS = "firmware"
19TEST_TYPE = "server"
20DEPENDENCIES = "servo, fingerprint"
21JOB_RETRIES = 0
22
23DOC = """
24Attempts to add entropy while running RW firmware and verifies that it fails.
25Adds entropy from RO firmware and verifies that rollback block ID increments by
26one. Then adds entropy with reset (double write) and verifies block ID
27incremented by two. Finally, reboots back to RW.
28"""
29
30args_dict = utils.args_to_dict(args)
31servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
32
33def run(machine):
34    host = hosts.create_host(machine, servo_args=servo_args)
35    job.run_test("firmware_Fingerprint", host=host, test_exe="add_entropy.sh")
36
37parallel_simple(run, machines)
38