X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fpost%2Ftest-post-common.sh;h=7bc67e326310d9049623956bafced862a63ff210;hb=4b69859a74ae284868c3c8e740f02750377a1d2d;hp=c35a5a256e83cb87f53ecd299077e87791bd80f9;hpb=01ccb3f07cef6989517ff99252ca00b0e1c1c07c;p=mmh diff --git a/test/post/test-post-common.sh b/test/post/test-post-common.sh index c35a5a2..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,9 +37,8 @@ test_post () # compare it against our "correct" output. # - sed -i.bak -e 's/^Date:.*/Date:/' "$1" + sed -e 's/^Date:.*/Date:/' "$1" > "$1".nodate + rm -f "$1" - rm -f "${1}.bak" - - check "$1" "$2" + check "$1".nodate "$2" }