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