X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT357-index-decryption.sh;h=2b8e05b839bcb934679c76098902fa3eb1ee75ea;hp=6b8a826186eaa1d98293bfa765adb7ec4d2af3d7;hb=8ea4a99d74737929f58568505e41c94f65a14743;hpb=0ada2a05c94de72bc2c7c57a790e92b77af37a42 diff --git a/test/T357-index-decryption.sh b/test/T357-index-decryption.sh index 6b8a8261..2b8e05b8 100755 --- a/test/T357-index-decryption.sh +++ b/test/T357-index-decryption.sh @@ -197,14 +197,14 @@ test_expect_equal \ "$output" \ "$expected" -test_begin_subtest "show one of the messages with --decrypt" -output=$(notmuch show --decrypt thread:0000000000000001 | awk '/^\014part}/{ f=0 }; { if (f) { print $0 } } /^\014part{ ID: 3/{ f=1 }') +test_begin_subtest "show one of the messages with --decrypt=true" +output=$(notmuch show --decrypt=true thread:0000000000000001 | awk '/^\014part}/{ f=0 }; { if (f) { print $0 } } /^\014part{ ID: 3/{ f=1 }') expected='This is a test encrypted message with a wumpus.' test_expect_equal \ "$output" \ "$expected" -test_begin_subtest "Ensure that we cannot show the message without --decrypt" +test_begin_subtest "Ensure that we cannot show the message with --decrypt=auto" output=$(notmuch show thread:0000000000000001 | awk '/^\014part}/{ f=0 }; { if (f) { print $0 } } /^\014part{ ID: 3/{ f=1 }') expected='Non-text part: application/octet-stream' test_expect_equal \