Home | History | Annotate | Download | only in platform_Pkcs11Events

Lines Matching refs:token

14         # Setup some token directories.
18 for token in token_list:
19 shutil.rmtree(token, ignore_errors=True)
20 pkcs11.copytree_with_ownership(pkcs11.TMP_CHAPS_DIR, token)
22 # Setup a key on each token.
23 for token in token_list:
25 (token, token))
27 utils.system('chaps_client --unload --path=%s' % token)
30 for token in token_list:
32 (token, token))
33 for token in token_list:
34 utils.system('chaps_client --unload --path=%s' % token)
38 token = random.choice(token_list)
42 (token, token))
43 # Note: This won't necessarily test the token we just loaded but
44 # we do know there should be at least one token available.
48 raise error.TestFail('At least one token is not functional.')
50 utils.system('chaps_client --unload --path=%s' % token)
52 # See if each token is still functional.
53 for token in token_list:
54 utils.system('chaps_client --unload --path=%s' % token)
55 for token in token_list:
57 (token, token))
61 raise error.TestFail('Token is not functional: %s' % token)
62 utils.system('chaps_client --unload --path=%s' % token)
63 shutil.rmtree(token, ignore_errors=True)