#! /bin/sh /usr/share/dpatch/dpatch-run ## 03-smtptest.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: fakesmtp tool doesn't always start fast enough @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nmh-1.5-release~/test/post/test-post-common.sh nmh-1.5-release/test/post/test-post-common.sh --- nmh-1.5-release~/test/post/test-post-common.sh 2012-06-04 05:37:10.000000000 +1000 +++ nmh-1.5-release/test/post/test-post-common.sh 2012-06-12 20:27:55.134596720 +1000 @@ -26,7 +26,8 @@ test_post () { "${MH_OBJ_DIR}/test/fakesmtp" "$1" $localport & pid="$!" - + # the server doesn't always come up fast enough... + sleep 5 send -draft -server 127.0.0.1 -port $localport || exit 1 wait ${pid}