X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT140-excludes.sh;h=352b3eb8c14314cbbd17391c9c795f8b66b2cf02;hb=119a41b9edd5722bcb7a0a41bac010f254a652fd;hp=0cacc41d9d573f6f98abfc43df18e819a2c7eff2;hpb=acc6331baa41a8aa7025924c823251d8f8c3384f;p=notmuch diff --git a/test/T140-excludes.sh b/test/T140-excludes.sh index 0cacc41d..352b3eb8 100755 --- a/test/T140-excludes.sh +++ b/test/T140-excludes.sh @@ -5,8 +5,7 @@ test_description='"notmuch search, count and show" with excludes in several vari # Generates a thread consisting of a top level message and 'length' # replies. The subject of the top message 'subject: top message" # and the subject of the nth reply in the thread is "subject: reply n" -generate_thread () -{ +generate_thread () { local subject="$1" local length="$2" generate_message '[subject]="'"${subject}: top message"'"' '[body]="'"body of top message"'"' @@ -389,7 +388,7 @@ Subject: No messages excluded: single match: reply 4 Subject: No messages excluded: single match: reply 5" test_begin_subtest "Show, exclude=false" -output=$(notmuch show --exclude=false tag:test | notmuch_show_sanitize_all | egrep "Subject:|message{") +output=$(notmuch show --exclude=false tag:test | notmuch_show_sanitize_all | egrep "Subject:|message{") test_expect_equal "$output" " message{ id:XXXXX depth:0 match:1 excluded:1 filename:XXXXX Subject: All messages excluded: single match: reply 2 message{ id:XXXXX depth:0 match:1 excluded:1 filename:XXXXX