X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/39a6bb2ad6c87e55d25115eb7d8e9a4043fec2e1..9291a5f82480f2458e04cb9ea7e6749bc952b308:/test/post/test-post-common.sh diff --git a/test/post/test-post-common.sh b/test/post/test-post-common.sh index 3b1a3d0b..66feddca 100755 --- a/test/post/test-post-common.sh +++ b/test/post/test-post-common.sh @@ -9,7 +9,8 @@ set -e setup_test -localport=65412 +arith_eval 64000 + $$ % 1000 +localport=$arith_val testname="${MH_TEST_DIR}/$$" # @@ -28,7 +29,7 @@ echo "clientname: nosuchhost.example.com" >> ${MHMTSCONF} test_post () { pid=`"${MH_OBJ_DIR}/test/fakesmtp" "$1" $localport` - send -draft -server 127.0.0.1 -port $localport $3 || exit 1 + run_prog send -draft -server 127.0.0.1 -port $localport $3 # # It's hard to calculate the exact Date: header post is going to