From a60124a64d866c0db7de03556ba2e1c90f7aae64 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 18 2012 14:08:10 +0000 Subject: added timeout to nc in smtp-mta-test --- diff --git a/tests/p_postfix/20_postfix_mta.sh b/tests/p_postfix/20_postfix_mta.sh index 7c8a397..7379b35 100755 --- a/tests/p_postfix/20_postfix_mta.sh +++ b/tests/p_postfix/20_postfix_mta.sh @@ -10,7 +10,7 @@ cat /dev/null > $MAILSPOOL ret_val=1 # send mail to localhost -echo -e "helo localhost\nmail from: root@localhost\nrcpt to: root@localhost\ndata\nt_functional test\n.\nquit\n" | nc localhost 25 | grep -q "250 2.0.0" +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 -q "250 2.0.0" if [ $? = 0 ] then t_Log 'Mail has been queued successfully'