diff mbox series

[1/2] t/lib-gpg: forcibly run a trustdb update

Message ID 20230822130315.71259-1-list@eworm.de (mailing list archive)
State Accepted
Commit 031fff289a52d7a0f8ead7390b67468122f49bec
Headers show
Series [1/2] t/lib-gpg: forcibly run a trustdb update | expand

Commit Message

Christian Hesse Aug. 22, 2023, 1:03 p.m. UTC
From: Christian Hesse <mail@eworm.de>

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>
---
 t/lib-gpg.sh | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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 >/dev/null \
 			--sign -u committer@example.com
 		;;