Subject: | Fails if the testing user has never used gpg before |
Yesterday I installed gpg and gpg-agent on the box where my cpan smokers
are running. The user that is running the tests has never used gpg and
has no default secret key. Now the test agent.t fails with little
evidence about what is going wrong. So I stepped through the debugger
with it and captured this content of $read in lib/Mail/GnuPG.pm:597:
DB<6> x $read
0 HASH(0x2339848)
'IO::Handle=GLOB(0x222f2b8)' => ''
'IO::Handle=GLOB(0x222f390)' => 'gpg: no default secret key: bad
passphrase
gpg: signing failed: bad passphrase
'
'IO::Handle=GLOB(0x222f780)' => '[GNUPG:] USERID_HINT
49539D60EFEA4EAD Mail::GnuPG Test Key <mail@gnupg.dom>
[GNUPG:] NEED_PASSPHRASE 49539D60EFEA4EAD 49539D60EFEA4EAD 17 0
[GNUPG:] MISSING_PASSPHRASE
[GNUPG:] BAD_PASSPHRASE 49539D60EFEA4EAD
'
Does this help in finding a solution?
Thanks,