Home | History | Annotate | Download | only in firmware_Fingerprint
      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 
      5 from autotest_lib.server import utils
      6 
      7 AUTHOR = "Chrome OS Team"
      8 NAME = "firmware_Fingerprint.RWNoUpdateRO"
      9 PURPOSE = """
     10 Verify HW write protect prevents RO fingerprint firmware modification.
     11 """
     12 CRITERIA = """
     13 Fails if the RO firmware can be written while HW write protect is enabled.
     14 """
     15 ATTRIBUTES = "suite:fingerprint"
     16 TIME = "SHORT"
     17 TEST_CATEGORY = "Functional"
     18 TEST_CLASS = "firmware"
     19 TEST_TYPE = "server"
     20 DEPENDENCIES = "servo, fingerprint"
     21 JOB_RETRIES = 0
     22 
     23 DOC = """
     24 Enables hardware write protect, attempts to flash the RO fingerprint firmware,
     25 and verifies that the flashing fails.
     26 """
     27 
     28 args_dict = utils.args_to_dict(args)
     29 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     30 
     31 test_images = [ 'TEST_IMAGE_DEV' ]
     32 
     33 def run(machine):
     34     host = hosts.create_host(machine, servo_args=servo_args)
     35     job.run_test("firmware_Fingerprint", host=host,
     36                  test_exe="rw_no_update_ro.sh", test_exe_args=test_images)
     37 
     38 parallel_simple(run, machines)
     39