[PATCH v2 5/6] t/send-email: add test with quoted sender
- From
- Michael S. Tsirkin <mst@redhat.com>
- Date
- May 30, 2013, 07:11 UTC
- Message-ID
- <1369897638-27299-6-git-send-email-mst@redhat.com>
- In-Reply-To
- <1369897638-27299-1-git-send-email-mst@redhat.com>
add test where sender address needs to be quoted. Make sure --suppress-cc=self works well in this case.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> --- t/t9001-send-email.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 452b362..42fb809 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -211,11 +211,31 @@ test_suppress_self_unquoted () { EOF } +test_suppress_self_quoted () { + test_suppress_self "$1" "$2" "quoted-$3" <<-EOF + test suppress-cc.self quoted-$3 with name $1 email $2 + + quoted-$3 + + cccmd--"$1" <$2> + + Cc: $1 <$2> + Cc: "$1" <$2> + Signed-off-by: $1 <$2> + Signed-off-by: "$1" <$2> + EOF +} + test_expect_success $PREREQ 'self name is suppressed' " test_suppress_self_unquoted 'A U Thor' 'author@redhat.com' \ 'self_name_suppressed' " +test_expect_success $PREREQ 'quoted self name is suppressed' " + test_suppress_self_quoted 'A U. Thor' 'author@redhat.com' \ + 'self_name_suppressed' +" + test_expect_success $PREREQ 'Show all headers' ' git send-email \ --dry-run \
-- MST