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.SoftwareWriteProtect"
      9 PURPOSE = """
     10 Verify that software write protect cannot be disabled when hardware write
     11 protect is enabled.
     12 """
     13 CRITERIA = """
     14 Fails if we can disable software write protect from RO or RW."
     15 """
     16 ATTRIBUTES = "suite:fingerprint"
     17 TIME = "SHORT"
     18 TEST_CATEGORY = "Functional"
     19 TEST_CLASS = "firmware"
     20 TEST_TYPE = "server"
     21 DEPENDENCIES = "servo, fingerprint"
     22 JOB_RETRIES = 0
     23 
     24 DOC = """
     25 Reboots to RO, attempts to disable software write protect while hardware write
     26 protect is enabled and verifies that it fails. Then reboots to RW, attempts to
     27 disable software write protect while hardware write protect is enabled and
     28 verifies that it fails.
     29 """
     30 
     31 args_dict = utils.args_to_dict(args)
     32 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     33 
     34 def run(machine):
     35     host = hosts.create_host(machine, servo_args=servo_args)
     36     job.run_test("firmware_Fingerprint", host=host,
     37                  test_exe="sw_write_protect.sh")
     38 
     39 parallel_simple(run, machines)
     40