From 79858fb368debf883f01f19bbfc16eb91f3cdd3d Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Thu, 15 Jul 2021 14:38:45 -0600 Subject: [PATCH] fixup! bin/remote: Add list-gpg-keys subcommand --- tests/test-remote-list-gpg-keys.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test-remote-list-gpg-keys.sh b/tests/test-remote-list-gpg-keys.sh index 092221604d..81699f14ec 100755 --- a/tests/test-remote-list-gpg-keys.sh +++ b/tests/test-remote-list-gpg-keys.sh @@ -122,6 +122,13 @@ if [ -z "${GPG}" ]; then echo "ok # SKIP this test requires gpg" done else + # The GPG private keyring in gpghome is in the older secring.gpg + # format, but we're likely using a newer gpg. Normally it's + # implicitly migrated to the newer format, but this test hasn't + # signed anything, so the private keys haven't been loaded. Force + # the migration by listing the private keys. + ${GPG} --homedir=${test_tmpdir}/gpghome -K >/dev/null + # Expire key1, wait for it to be expired and re-import it. ${GPG} --homedir=${test_tmpdir}/gpghome --quick-set-expire ${TEST_GPG_KEYFPR_1} seconds=1 sleep 2