commands/mail: Fix a mismatched sender name in mail0[23]
PATCH 1/1 commands/mail: Fix a mismatched sender name in mail0[23]
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.
--- testcases/commands/mail/mail_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
testcases/commands/mail/mail_tests.sh +4 -4
@@ -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) 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
Signature · 1 line
1.8.3.1
PATCH 1/1 commands/mail: Fix a mismatched sender name in mail0[23]
Hi!
Quoted 15 lines
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 <[email protected]>Signed-off-by Xiao Yang <[email protected]>--- testcases/commands/mail/mail_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)testcases/commands/mail/mail_tests.sh +0
-0
testcases/commands/mail/mail_tests.sh else · line 173
Quoted 7 lines
testcases/commands/mail/mail_tests.sh +2
-2@@ -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?
Quoted 22 lines
testcases/commands/mail/mail_tests.sh +2
-2fi ##################################################################@@ -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 willSignature · 7 lines
1.8.3.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Signature · 2 lines
Cyril Hrubis [email protected]
PATCH v2 1/1 commands/mail: Fix a mismatched sender name in mail0[23]
In reply to Xiao YangIn 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.
--- testcases/commands/mail/mail_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
testcases/commands/mail/mail_tests.sh +4 -4
@@ -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|System|Syst)")}' $LTPTMP/tst_mail.res) 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
Signature · 1 line
1.8.3.1
PATCH v2 1/1 commands/mail: Fix a mismatched sender name in mail0[23]
Hi!
Pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]