From 214da7bcd1ef52c46d4e77c787517d9403c97046 Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 25 Apr 2012 20:08:55 -0500 Subject: [PATCH] Removed the mv of the file after running sed on it. --- test/post/test-post-common.sh | 4 ++-- test/post/test-post-fcc | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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} -- 1.7.10.4