xref: /aosp_15_r20/external/autotest/server/site_tests/firmware_ClearTPMOwnerAndReset/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2017 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
5AUTHOR = "mruthven"
6NAME = "firmware_ClearTPMOwnerAndReset"
7PURPOSE = "Verify normal boot after clearing the tpm owner and rebooting the ec"
8TIME = "SHORT"
9TEST_TYPE = "server"
10JOB_RETRIES = 0
11DEPENDENCIES = "servo_state:WORKING"
12PY_VERSION = 3
13
14DOC = """
15This test verifies the device doesn't get into a bad state when the EC is reset
16after the tpm owner has been cleared.
17"""
18
19from autotest_lib.server import utils
20
21args_dict = utils.args_to_dict(args)
22servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
23
24iterations = int(args_dict.get("iterations", 1))
25
26def run(machine):
27    host = hosts.create_host(machine, servo_args=servo_args)
28
29    job.run_test("firmware_ClearTPMOwnerAndReset", host=host, cmdline_args=args,
30                 iterations=iterations)
31
32parallel_simple(run, machines)
33