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_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", 10)) 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