]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-common.sh
Changes to flist.man
[nmh] / test / post / test-post-common.sh
index 6767d747bfec44e47dade98d29157bcd3d6d0052..66feddca8c3f69d19b6142e97534e046b8644270 100755 (executable)
@@ -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`
 
-    run_prog 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