X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fpost%2Ftest-post-common.sh;h=7bc67e326310d9049623956bafced862a63ff210;hb=e7129bf90a1b361e07365002379d8d2874c0f771;hp=7698b81cf9d37c3dc6d49556a6888cd4dd84794e;hpb=b2fb9dfa039340fb4776e36cb381d02fffacd608;p=mmh diff --git a/test/post/test-post-common.sh b/test/post/test-post-common.sh index 7698b81..7bc67e3 100755 --- a/test/post/test-post-common.sh +++ b/test/post/test-post-common.sh @@ -29,7 +29,7 @@ test_post () send -draft -server 127.0.0.1 -port $localport || exit 1 - wait $! + wait ${pid} # # It's hard to calculate the exact Date: header post is going to @@ -37,7 +37,8 @@ test_post () # compare it against our "correct" output. # - sed -i "" -e 's/^Date:.*/Date:/' "$1" + sed -e 's/^Date:.*/Date:/' "$1" > "$1".nodate + rm -f "$1" - check "$1" "$2" + check "$1".nodate "$2" }