X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT357-index-decryption.sh;h=f5644d7eb04085301ef7f71a517b76ea109defa8;hb=92454bc0935604f4a623e75dec9506c0283eee70;hp=1ac2836a6e31e9cab1b8c37444038fc6162bce29;hpb=7ad7cfbff232431377562271901ee00202bf0bd0;p=notmuch diff --git a/test/T357-index-decryption.sh b/test/T357-index-decryption.sh index 1ac2836a..f5644d7e 100755 --- a/test/T357-index-decryption.sh +++ b/test/T357-index-decryption.sh @@ -4,9 +4,11 @@ test_description='indexing decrypted mail' . $(dirname "$0")/test-lib.sh || exit 1 +. $(dirname "$0")/test-lib-emacs.sh || exit 1 ################################################## +test_require_emacs add_gnupg_home # create a test encrypted message @@ -306,6 +308,9 @@ test_json_nodes <<<"$output" "$goodsig" test_begin_subtest "verify signature with stashed session key" output=$(notmuch show --format=json id:encrypted-signed@crypto.notmuchmail.org) +if [ $NOTMUCH_GMIME_VERIFY_WITH_SESSION_KEY -ne 1 ]; then + test_subtest_known_broken +fi test_json_nodes <<<"$output" "$goodsig" # TODO: test removal of a message from the message store between