Skip to content

Commit 6cd8369

Browse files
tmzullingergitster
authored andcommitted
t/lib-gpg: call prepare_gnupghome() in GPG2 prereq
The GPG2 prereq added in 2f36339 (t/lib-gpg: introduce new prereq GPG2, 2023-06-04) does not create the $GNUPGHOME directory. Tests which use the GPG2 prereq without previously using the GPG prereq fail because of the missing directory. This currently affects t1016-compatObjectFormat. Ensure $GNUPGHOME is created in the GPG2 prereq. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a35952b commit 6cd8369

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/lib-gpg.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ test_lazy_prereq GPG2 '
6666
exit 1
6767
;;
6868
*)
69+
prepare_gnupghome &&
6970
(gpgconf --kill all || : ) &&
7071
gpg --homedir "${GNUPGHOME}" --import \
7172
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&

0 commit comments

Comments
 (0)