From 73b9d02489848b6417ce283f70c520e8ea8a6360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Thu, 23 Feb 2017 12:45:14 +0100 Subject: [PATCH] do not print grep output, refs #20590 --- tests/test_send_email.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_send_email.sh b/tests/test_send_email.sh index eb2e68c5..d60357cb 100755 --- a/tests/test_send_email.sh +++ b/tests/test_send_email.sh @@ -3,9 +3,10 @@ # envoyer un mail contenant un truc random RAND="$RANDOM" EMAIL="deployment+$RAND@ubicast.eu" +echo "Sending email to $EMAIL" echo "This is a test email" | mail -s "Test email from `cat /etc/hostname`" $EMAIL sleep 10 -grep $EMAIL /var/log/mail.log | grep bounced +grep $EMAIL /var/log/mail.log | grep bounced > /dev/null if [ $? -ne 0 ]; then echo "Sending mail failed" exit 1 -- GitLab