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.stress"
7PURPOSE = "Verify normal boot after clearing the tpm owner and rebooting the ec"
8# TODO(b/77292177): add to faft_cr50 once the issue has been addressed.
9TIME = "SHORT"
10TEST_TYPE = "server"
11DEPENDENCIES = "servo"
12
13DOC = """
14This test verifies the device doesn't get into a bad state when the EC is reset
15after the tpm owner has been cleared.
16"""
17
18from autotest_lib.server import utils
19
20args_dict = utils.args_to_dict(args)
21servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
22
23iterations = int(args_dict.get("iterations", 10))
24
25def run(machine):
26    host = hosts.create_host(machine, servo_args=servo_args)
27
28    job.run_test("firmware_ClearTPMOwnerAndReset", host=host, cmdline_args=args,
29                 iterations=iterations)
30
31parallel_simple(run, machines)
32