Subject: | Test fails - possibly due to change in GPG output |
Hi,
test 03.enc.t and 04.big.t fail with messages like:
# Failed test 'Decryption key or email wrong: 062F00DAE20F5035==062F00DAE20F5035'
# at /home/perl5/.cpan/build/Mail-GPG-1.0.7-3Phcrc/blib/lib/Mail/GPG/Test.pm line 308.
The test fails because $dec_key_mail is not set. The problem can be traced down
to GPG/GPG.pm query_keyring() (ca. line 421) where the output of gpg seems
to differ from what has been expected.
query_keyring() uses the arguments "--list-keys --with-colons 6C187D0F196ED9E3"
and gpg returns:
tru:t:1:1429473192:0:3:1:5
pub:-:1024:17:062F00DAE20F5035:1076425915:::-:::scaESCA:
uid:-::::1076425915::588869ADE077B8FB05788A99565AEED15AED8231::Jörn Reder Mail\x3a\x3aGPG Test Key <mailgpg@localdomain>:
sub:-:1024:16:6C187D0F196ED9E3:1076425917::::::e:
where the /^pub/ line is scanned but it does not contain the email-address.
That is contained in the following line (/^uid:/.
Thanks.
Versions:
- Perl: (v5.18.2) built for x86_64-linux-thread-multi
- Linux site 3.11.10-29-desktop #1 SMP PREEMPT Thu Mar 5 16:24:00 UTC 2015 (338c513) x86_64 x86_64 x86_64 GNU/Linux
- openSUSE 13.1 (x86_64)
- GnuPG::Interface V0.52 (not patched)
- gpg (GnuPG) 2.0.22, libgcrypt 1.5.4