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 <mail@eworm.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Hesse committed
Aug 22, 2023 at 15:03 UTC
031fff289a52d7a0f8ead7390b67468122f49bec
1 file changed
+1
t/lib-gpg.sh
+1
@@ -45,6 +45,7 @@ test_lazy_prereq GPG '
45
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&
46
gpg --homedir "${GNUPGHOME}" --import-ownertrust \
47
"$TEST_DIRECTORY"/lib-gpg/ownertrust &&
48
+ gpg --homedir "${GNUPGHOME}" --update-trustdb &&
49
gpg --homedir "${GNUPGHOME}" </dev/null >/dev/null \
50
--sign -u committer@example.com
51
;;