Home | History | Annotate | Download | only in platform_TPMEvict
      1 # Copyright (c) 2012 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 from autotest_lib.client.bin import test, utils
      6 from autotest_lib.client.cros import pkcs11
      7 
      8 
      9 class platform_TPMEvict(test.test):
     10     version = 1
     11 
     12     def run_once(self):
     13         pkcs11.setup_p11_test_token(True)
     14         pkcs11.load_p11_test_token()
     15         for i in range(30):
     16             utils.system('p11_replay --inject --replay_wifi')
     17         for i in range(30):
     18             utils.system('p11_replay --inject')
     19         utils.system('p11_replay --replay_wifi')
     20         utils.system('p11_replay --cleanup')
     21         pkcs11.cleanup_p11_test_token()
     22