Page MenuHome GnuPG

Test failure: test using user's keyring instead of fresh keyring?
Closed, InvalidPublic

Description

Hi,

I have the following test failure on OpenBSD with gnupg-2.1.19:

Checking that we can revoke a user ID... 
/usr/local/pobj/gnupg-2.1.19/gnupg-2.1.19/tests/openpgp/quick-key-
manipulation.scm:82: Assertion failed: : ((= 1 (count-uids-of-secret-key bravo)))
0: (throw (string-append "/usr/local/pobj/gnupg-2.1.19/gnupg-
2.1.19/tests/openpgp/quick-key-manipulation.scm" ":" "82" ": Assertion failed: ") 
'(= 1 (count-uids-of-secret-key bravo)))
FAIL: quick-key-manipulation.scm

So the test expected 1, but got 82.

It looks to me like the test is using my local keychain. If I move away
~/.gnupg and re-run the tests, they all pass.

I suspect it is finding 82 keys from my keychain matching some criteria, but it
expects to be operating on a clean keychain from the outset.

Thanks

Details

Version
2.1.19

Event Timeline

vext01 set Version to 2.1.19.
vext01 added a subscriber: vext01.
wk added a subscriber: justus.

'82' is the line of the failing assertion.

Please run the test like this so that we can get more insight:

make -Ctests/openpgp check verbose=3 XTESTS=quick-key-manipulation.scm

I'm closing this. Feel free to reopen the bug with more information.