t/gpg: simplify test for unknown key
commit0517f591ca290a14ee3e516e478e8d2b78b45822
authorFabian Stelzer <fs@gigacodes.de>
Wed, 12 Jan 2022 12:07:57 +0000 (12 13:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jan 2022 19:21:22 +0000 (12 11:21 -0800)
tree093e0835e12ddccaea931a0bf669a2c2e1d5f9d2
parent18c6653da0be924f83415f987d76f6813b81f086
t/gpg: simplify test for unknown key

To test for a key that is completely unknown to the keyring we need one
to sign the commit with. This was done by generating a new key and not
add it into the keyring. To avoid the key generation overhead and
problems where GPG did hang in CI during it, switch GNUPGHOME to the
empty $GNUPGHOME_NOT_USED instead, therefore making all used keys unknown
for this single `verify-commit` call.

Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Fabian Stelzer <fs@gigacodes.de>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7510-signed-commit.sh