public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] commands/mail: Fix a mismatched sender name in mail0[23]
Date: Wed, 11 Oct 2017 14:49:44 +0200	[thread overview]
Message-ID: <20171011124944.GA15968@rei> (raw)
In-Reply-To: <1507713804-8732-1-git-send-email-yangx.jy@cn.fujitsu.com>

Hi!
> In some systems (e.g. debain), both mail02 and mail03 fail because the
> sender name of the returned letter is "Mail Deliver Syst" which does
> not match existed keywords.  we add the 'Syst' keyword to fix it.
> 
> Signed-off-by: Shaoting Lei <leist.fnst@cn.fujitsu.com>
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> ---
>  testcases/commands/mail/mail_tests.sh | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/testcases/commands/mail/mail_tests.sh b/testcases/commands/mail/mail_tests.sh
> index 1652aa7..aaf73ef 100755
> --- a/testcases/commands/mail/mail_tests.sh
> +++ b/testcases/commands/mail/mail_tests.sh
> @@ -169,8 +169,8 @@ else
>  		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
>  		    $LTPTMP/tst_mail.res)
>  	else
> -		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
> -		    $LTPTMP/tst_mail.res)
> +		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
> +		    "MailDelivery(Subsys|Systemi|Syst)")}' $LTPTMP/tst_mail.res)
                                               ^
					       Typo?
>  	fi
>  
>  	##################################################################
> @@ -250,8 +250,8 @@ else
>  		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3, "Mailer-Daemon")}' \
>  		    $LTPTMP/tst_mail.res)
>  	else
> -		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5, "MailDelivery(Subsys|System)")}' \
> -		    $LTPTMP/tst_mail.res)
> +		RC1=$(awk '/^>N/ {IGNORECASE=1; print match($3 $4 $5,
> +		    "MailDelivery(Subsys|System|Syst)")}' $LTPTMP/tst_mail.res)
>  	fi
>  	##################################################################
>  	# In this testcase, mail will get "Returnedmail:", while mailx will
> -- 
> 1.8.3.1
> 
> 
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2017-10-11 12:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-11  9:23 [LTP] [PATCH] commands/mail: Fix a mismatched sender name in mail0[23] Xiao Yang
2017-10-11 12:49 ` Cyril Hrubis [this message]
2017-10-13  6:44 ` [LTP] [PATCH v2] " Xiao Yang
2017-10-13 11:47   ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171011124944.GA15968@rei \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox