From: Tomi Ollila Date: Wed, 16 Nov 2011 21:25:19 +0000 (+0200) Subject: test: attempt to send QUIT to smtp-dummy in case mail send failed X-Git-Tag: 0.11_rc1~127 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c832dad3224f627e528530102976b172048758ea;p=notmuch.git test: attempt to send QUIT to smtp-dummy in case mail send failed If mail sending from emacs fails before it has chance to connect to the smtp-dummy mail server, the opportunistic QUIT message sending makes smtp-dummy to exit. --- diff --git a/test/test-lib.sh b/test/test-lib.sh index cf309f94..93867b03 100755 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -398,6 +398,8 @@ emacs_deliver_message () (insert \"${body}\") $@ (message-send-and-exit))" + # opportunistically quit smtp-dummy in case above fails. + { echo QUIT > /dev/tcp/localhost/25025; } 2>/dev/null wait ${smtp_dummy_pid} notmuch new >/dev/null }