X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT355-smime.sh;h=0f39bc6933945144086ad2ac4b05ab9765f5dd14;hp=639ca697c734f6e5f82d51a522fe756a6c40eac9;hb=5f71a4d3e15fa2ff7d4bcc9b8bfb8a2057b26ad7;hpb=c0c5645538d9dda84657602ee4189f4ff3ca1aeb diff --git a/test/T355-smime.sh b/test/T355-smime.sh index 639ca697..0f39bc69 100755 --- a/test/T355-smime.sh +++ b/test/T355-smime.sh @@ -7,6 +7,8 @@ add_gpgsm_home () { local fpr [ -d ${GNUPGHOME} ] && return + _gnupg_exit () { gpgconf --kill all 2>/dev/null || true; } + at_exit_function _gnupg_exit mkdir -m 0700 "$GNUPGHOME" gpgsm --no-tty --no-common-certs-import --disable-dirmngr --import < $TEST_DIRECTORY/smime/test.crt >"$GNUPGHOME"/import.log 2>&1 fpr=$(gpgsm --list-key test_suite@notmuchmail.org | sed -n 's/.*fingerprint: //p')