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" 10DEPENDENCIES = "servo" 11 12DOC = """ 13This test verifies the device doesn't get into a bad state when the EC is reset 14after the tpm owner has been cleared. 15""" 16 17from autotest_lib.server import utils 18 19args_dict = utils.args_to_dict(args) 20servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 21 22iterations = int(args_dict.get("iterations", 1)) 23 24def run(machine): 25 host = hosts.create_host(machine, servo_args=servo_args) 26 27 job.run_test("firmware_ClearTPMOwnerAndReset", host=host, cmdline_args=args, 28 iterations=iterations) 29 30parallel_simple(run, machines) 31