]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/lib-gpg: forcibly run a trustdb update
authorChristian Hesse <mail@eworm.de>
Tue, 22 Aug 2023 13:03:14 +0000 (15:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Aug 2023 16:29:06 +0000 (09:29 -0700)
We want to compare output later, so randomly popping up 'gpg: checking
the trustdb' breaks the tests. Run the trustdb update forcibly.

Signed-off-by: Christian Hesse <mail@eworm.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh

index 4eebd9c2b50f0445b975c46bc660efc9eb90ecd5..83b83c9abb5089186adfd4ac0b647b6f4c673820 100644 (file)
@@ -45,6 +45,7 @@ test_lazy_prereq GPG '
                        "$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&
                gpg --homedir "${GNUPGHOME}" --import-ownertrust \
                        "$TEST_DIRECTORY"/lib-gpg/ownertrust &&
+               gpg --homedir "${GNUPGHOME}" --update-trustdb &&
                gpg --homedir "${GNUPGHOME}" </dev/null >/dev/null \
                        --sign -u committer@example.com
                ;;