X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT350-crypto.sh;h=d21cad144cb15311aec1a39ae5fb0aa830ad62ad;hb=4a085a51376d888185e6719c397832173a4ba159;hp=b7d3a2cf662e91ac30eab12f1210fa062505312e;hpb=523d2b50fcaae90cbe09975c1f1bc652ff521ec6;p=notmuch diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh index b7d3a2cf..d21cad14 100755 --- a/test/T350-crypto.sh +++ b/test/T350-crypto.sh @@ -11,6 +11,8 @@ add_gnupg_home () { local output [ -d ${GNUPGHOME} ] && return + _gnupg_exit () { gpgconf --kill all 2>/dev/null || true; } + at_exit_function _gnupg_exit mkdir -m 0700 "$GNUPGHOME" gpg --no-tty --import <$TEST_DIRECTORY/gnupg-secret-key.asc >"$GNUPGHOME"/import.log 2>&1 test_debug "cat $GNUPGHOME/import.log"