Skip to content

Commit a6f1456

Browse files
committed
Merge branch 'st/lib-gpg-kill-stray-agent'
Some versions of GnuPG fails to kill gpg-agent it auto-spawned and such a left-over agent can interfere with a test. Work it around by attempting to kill one before starting a new test. * st/lib-gpg-kill-stray-agent: t: lib-gpg: flush gpg agent on startup
2 parents e578565 + 29ff1f8 commit a6f1456

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
@@ -31,6 +31,7 @@ then
3131
chmod 0700 ./gpghome &&
3232
GNUPGHOME="$(pwd)/gpghome" &&
3333
export GNUPGHOME &&
34+
(gpgconf --kill gpg-agent 2>&1 >/dev/null || : ) &&
3435
gpg --homedir "${GNUPGHOME}" 2>/dev/null --import \
3536
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&
3637
gpg --homedir "${GNUPGHOME}" 2>/dev/null --import-ownertrust \

0 commit comments

Comments
 (0)