From 3bb82f4e5d9812c4058313ae4d637fe3be47bf21 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Oct 04 2014 15:12:47 +0000 Subject: minor change in variables of sendmail local delivery tests --- diff --git a/tests/p_sendmail/20_sendmail_mta.sh b/tests/p_sendmail/20_sendmail_mta.sh index 2141f6b..59116a1 100755 --- a/tests/p_sendmail/20_sendmail_mta.sh +++ b/tests/p_sendmail/20_sendmail_mta.sh @@ -5,10 +5,10 @@ t_Log "Running $0 - sendmail can accept and deliver local email." # send mail to localhost mail=$(echo -e "helo localhost\nmail from: root@localhost\nrcpt to: root@localhost\ndata\nt_functional test\n.\nquit\n" | nc -w 5 localhost 25 | grep accepted) -if [ $? == 0 ] +MTA_ACCEPT=$? +if [ $MTA_ACCEPT == 0 ] then t_Log 'Mail has been queued successfully' - MTA_ACCEPT=0 fi sleep 1 diff --git a/tests/p_sendmail/30_sendmail_mta_ehlo.sh b/tests/p_sendmail/30_sendmail_mta_ehlo.sh index ff0f082..0906b2a 100755 --- a/tests/p_sendmail/30_sendmail_mta_ehlo.sh +++ b/tests/p_sendmail/30_sendmail_mta_ehlo.sh @@ -5,10 +5,10 @@ t_Log "Running $0 - sendmail can accept and deliver local email." # send mail to localhost mail=$(echo -e "ehlo localhost\nmail from: root@localhost\nrcpt to: root@localhost\ndata\nt_functional test\n.\nquit\n" | nc -w 5 localhost 25 | grep accepted) -if [ $? == 0 ] +MTA_ACCEPT=$? +if [ $MTA_ACCEPT == 0 ] then t_Log 'Mail has been queued successfully' - MTA_ACCEPT=0 fi sleep 1