blob: 4cfef5ef425bb8d1790041f79e4598fdf60b0e35 [file] [log] [blame]
# Copyright 2019 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The test setup ensures that neither hardware or software write protect is
# enabled, which means that RDP is set to level 0. The test script then reads
# the flash and verifies that the bytes exactly match the originally flashed
# firmware.
from autotest_lib.server import utils
NAME = "firmware_Fingerprint.RDP0"
METADATA = {
"contacts": ["chromeos-fingerprint@google.com"],
"bug_component": "b:782045",
"criteria": "Fails if the bytes that we read do not exactly match the firmware that was flashed.",
}
ATTRIBUTES = "suite:fingerprint"
TEST_TYPE = "server"
DEPENDENCIES = "servo_state:WORKING, fingerprint"
HW_DEPS = ['biod']
JOB_RETRIES = 0
test_images = ["TEST_IMAGE_ORIGINAL"]
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test(
"firmware_Fingerprint",
host=host,
test_exe="rdp0.sh",
test_exe_args=test_images,
enable_hardware_write_protect=False,
enable_software_write_protect=False,
# This test requires a forced flash without entropy
# initialization to ensure that we get an exact match between
# the original firmware that was flashed and the value that is
# read.
force_firmware_flashing=True,
init_entropy=False,
tag="RDP0",
)
parallel_simple(run, machines)