From 957f65975c2170f623d967dc5c3203b3f409afa7 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 07 2014 17:33:17 +0000 Subject: fixed: added nc to be used in the test as prerequisite --- diff --git a/tests/p_sendmail/0-install_sendmail.sh b/tests/p_sendmail/0-install_sendmail.sh index 760b918..8e76c94 100755 --- a/tests/p_sendmail/0-install_sendmail.sh +++ b/tests/p_sendmail/0-install_sendmail.sh @@ -3,7 +3,7 @@ t_Log "Running $0 - remove unused MTAs and install sendmail" -t_InstallPackage sendmail +t_InstallPackage sendmail nc # Remove other MTAs t_ServiceControl postfix stop diff --git a/tests/p_sendmail/20_sendmail_mta.sh b/tests/p_sendmail/20_sendmail_mta.sh index b972549..f22b372 100755 --- a/tests/p_sendmail/20_sendmail_mta.sh +++ b/tests/p_sendmail/20_sendmail_mta.sh @@ -5,7 +5,7 @@ t_Log "Running $0 - sendmail can accept and deliver local email." ret_val=1 # 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) +mail=$(echo -e "helo localhost\nmail from: root@localhost\nrcpt to: root@localhost\ndata\nt_functional test\n.\nquit\n" | nc -w 5 127.0.0.1 25 | grep accepted) MTA_ACCEPT=$? if [ $MTA_ACCEPT == 0 ] then