Home GnuPG
Diffusion GPGME cff600f1f65a

Do not test for a bug in older GnuPG versions

Description

Do not test for a bug in older GnuPG versions

* tests/json/t-keylist-secret.out.json

Since at least 2.2.19 GnuPG no longer emits secret = true
for keys where it does not have a secret. To avoid
failures with older versions we remove the check altogether.

Details

Provenance
aheineckeAuthored on Jan 29 2020, 11:01 AM
Parents
rM414938cfedbd: m4/python: Scan for python 3.8 as well
Branches
Unknown
Tags
Unknown
Tasks
T4820: gpgme's json test fails with gpg 2.2.19

Event Timeline

Avoiding a failure for older versions means that the test suite won't catch this particular bug if it is reintroduced in future versions. That seems suboptimal for me, but given the complexity of the dependency chain, i don't know how to solve it. I prefer just raising an error with older versions of GnuPG as with rMf2aeb2563ba2 , as this is a test of the json interface, which isn't in widespread use yet.