From: David Levine Date: Thu, 26 Apr 2012 01:08:55 +0000 (-0500) Subject: Removed the mv of the file after running sed on it. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=4b69859a74ae284868c3c8e740f02750377a1d2d;p=mmh Removed the mv of the file after running sed on it. (cherry picked from commit 214da7bcd1ef52c46d4e77c787517d9403c97046) --- diff --git a/test/post/test-post-common.sh b/test/post/test-post-common.sh index 856c399..7bc67e3 100755 --- a/test/post/test-post-common.sh +++ b/test/post/test-post-common.sh @@ -38,7 +38,7 @@ test_post () # sed -e 's/^Date:.*/Date:/' "$1" > "$1".nodate - mv "$1".nodate "$1" + rm -f "$1" - check "$1" "$2" + check "$1".nodate "$2" } diff --git a/test/post/test-post-fcc b/test/post/test-post-fcc index 946969c..2fdd9de 100755 --- a/test/post/test-post-fcc +++ b/test/post/test-post-fcc @@ -55,8 +55,7 @@ EOF msgname=`mhpath +inbox 11` sed -e 's/^Date:.*/Date:/' "${msgname}" > "${msgname}".nodate -mv "${msgname}".nodate "${msgname}" -check "${testname}.msg.expected" "${msgname}" +check "${testname}.msg.expected" "${msgname}".nodate exit ${failed:-0}