[PATCH] test: test notmuch insert --folder=""

Tomi Ollila tomi.ollila at iki.fi
Thu Nov 2 13:24:29 PDT 2017


On Thu, Nov 02 2017, Jani Nikula wrote:

I just wonder why our examples always use the format that is hardest to
write (these 3 being equivalent):

    --folder=""  requires shift-2:s pressed twice on my keyboard
    --folder=''  requires press '-key (w/o shift) (twice) on my keyboard
    --folder=    requires neither

  
That said, this change LGTM.

Tomi


> Test insert into top level folder.
> ---
>  test/T070-insert.sh | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/test/T070-insert.sh b/test/T070-insert.sh
> index f1650e623e35..40519bb2f217 100755
> --- a/test/T070-insert.sh
> +++ b/test/T070-insert.sh
> @@ -132,6 +132,13 @@ output=$(notmuch search --output=files path:Drafts/new)
>  dirname=$(dirname "$output")
>  test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new"
>  
> +test_begin_subtest "Insert message into top level folder"
> +gen_insert_msg
> +notmuch insert --folder="" < "$gen_msg_filename"
> +output=$(notmuch search --output=files id:${gen_msg_id})
> +dirname=$(dirname "$output")
> +test_expect_equal "$dirname" "$MAIL_DIR/new"
> +
>  test_begin_subtest "Insert message into folder with trailing /"
>  gen_insert_msg
>  notmuch insert --folder=Drafts/ < "$gen_msg_filename"
> -- 
> 2.11.0
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list