• 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.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, fingerprint"
22JOB_RETRIES = 0
23
24DOC = """
25Reboots to RO, attempts to disable software write protect while hardware write
26protect is enabled and verifies that it fails. Then reboots to RW, attempts to
27disable software write protect while hardware write protect is enabled and
28verifies that it fails.
29"""
30
31args_dict = utils.args_to_dict(args)
32servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
33
34def 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
39parallel_simple(run, machines)
40