From: Christian Hesse Date: Tue, 22 Aug 2023 13:03:14 +0000 (+0200) Subject: t/lib-gpg: forcibly run a trustdb update X-Git-Tag: v2.42.1~24^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=031fff289a52d7a0f8ead7390b67468122f49bec;p=thirdparty%2Fgit.git t/lib-gpg: forcibly run a trustdb update 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 Signed-off-by: Junio C Hamano --- diff --git a/t/lib-gpg.sh b/t/lib-gpg.sh index 4eebd9c2b5..83b83c9abb 100644 --- a/t/lib-gpg.sh +++ b/t/lib-gpg.sh @@ -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 \ --sign -u committer@example.com ;;