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 5 AUTHOR = "mruthven" 6 NAME = "firmware_ClearTPMOwnerAndReset.stress" 7 PURPOSE = "Verify normal boot after clearing the tpm owner and rebooting the ec" 8 ATTRIBUTES = "suite:cr50_stress_experimental" 9 TIME = "SHORT" 10 TEST_TYPE = "server" 11 DEPENDENCIES = "servo" 12 13 DOC = """ 14 This test verifies the device doesn't get into a bad state when the EC is reset 15 after the tpm owner has been cleared. 16 """ 17 18 from autotest_lib.server import utils 19 20 args_dict = utils.args_to_dict(args) 21 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 22 23 iterations = int(args_dict.get("iterations", 10)) 24 25 def 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 31 parallel_simple(run, machines) 32