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