1# Copyright 2018 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 5from autotest_lib.server import utils 6 7AUTHOR = "louiscollard, apronin" 8NAME = "firmware_Cr50U2fPowerwash" 9ATTRIBUTES = "suite:faft_cr50_pvt, suite:faft_cr50_prepvt" 10TIME = "SHORT" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "firmware" 13TEST_TYPE = "server" 14DEPENDENCIES="servo_state:WORKING" 15 16DOC = """ 17This test issues a U2F_REGISTER command, clears the TPM, and checks that 18the previously issued key handle becomes invalid. This test ensures that 19after a powerwash, a device cannot be used to access resources on which 20the device was registered before powerwash. 21""" 22 23args_dict = utils.args_to_dict(args) 24servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 25 26def run_test(machine): 27 host = hosts.create_host(machine, servo_args=servo_args) 28 iterations = int(args_dict.get("iterations", 1)) 29 job.run_test('firmware_Cr50U2fPowerwash', host=host, cmdline_args=args, 30 iterations=iterations) 31 32parallel_simple(run_test, machines) 33