Skip to content

Commit b0b70d5

Browse files
tmzullingergitster
authored andcommitted
t/lib-gpg: kill all gpg components, not just gpg-agent
The gpg-agent is one of several processes that newer releases of GnuPG start automatically. Issue a kill to each of them to ensure they do not affect separate tests. (Yes, the separate GNUPGHOME should do that already. If we find that is case, we could drop the --kill entirely.) In terms of compatibility, the 'all' keyword was added to the --kill & --reload options in GnuPG 2.1.18. Debian and RHEL are often used as indicators of how a change might affect older systems we often try to support. - Debian Strech (old old stable), which has limited security support until June 2022, has GnuPG 2.1.18 (or 2.2.x in backports). - CentOS/RHEL 7, which is supported until June 2024, has GnuPG 2.0.22, which lacks the --kill option, so the change won't have any impact. Signed-off-by: Todd Zullinger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fa47dd6 commit b0b70d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/lib-gpg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test_lazy_prereq GPG '
4040
# > lib-gpg/ownertrust
4141
mkdir "$GNUPGHOME" &&
4242
chmod 0700 "$GNUPGHOME" &&
43-
(gpgconf --kill gpg-agent || : ) &&
43+
(gpgconf --kill all || : ) &&
4444
gpg --homedir "${GNUPGHOME}" --import \
4545
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&
4646
gpg --homedir "${GNUPGHOME}" --import-ownertrust \

0 commit comments

Comments
 (0)