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
Isis Lovecruft 2013-06-28 07:27:57 +00:00
parent 1780c7489a
commit 220e68bdfc
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 4 additions and 0 deletions

View File

@ -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)