X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT355-smime.sh;h=0f39bc6933945144086ad2ac4b05ab9765f5dd14;hb=b6f87c3085e25e5bf65a4f956af8846bc0681c52;hp=639ca697c734f6e5f82d51a522fe756a6c40eac9;hpb=d0cd253b37646d9364d046e1d3edb022a58c105a;p=notmuch 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')