Change unittest for separate keyrings to add extra --keyring option for now.
* At some point, as mentioned in an earlier commit, we should actually make some sort of helper function for adding extra keyring, so that their keys can be used/imported/exported/whatever the user wants to do with them, without changing the normal main keyrings.testing/mmn/mktime_takes_localtime_not_gmtime
parent
1780c7489a
commit
220e68bdfc
|
@ -788,10 +788,14 @@ authentication."""
|
|||
'subkey_usage': 'encrypt,sign',
|
||||
'passphrase': 'overalls' }
|
||||
|
||||
extra_keyrings = []
|
||||
|
||||
ian_input = self.gpg.gen_key_input(separate_keyring=True, **ian)
|
||||
log.info("Key stored in separate keyring: %s" % self.gpg.temp_keyring)
|
||||
ian_key = self.gpg.gen_key(ian_input)
|
||||
ian_fpr = str(ian_key.fingerprint)
|
||||
extra_keyrings.append('--keyring %s' % ian_key.pubring)
|
||||
self.gpg.options = extra_keyrings
|
||||
|
||||
kat_input = self.gpg.gen_key_input(separate_keyring=True, **kat)
|
||||
log.info("Key stored in separate keyring: %s" % self.gpg.temp_keyring)
|
||||
|
|
Loading…
Reference in New Issue