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