Removed the mv of the file after running sed on it.
authorDavid Levine <levinedl@acm.org>
Thu, 26 Apr 2012 01:08:55 +0000 (20:08 -0500)
committerDavid Levine <levinedl@acm.org>
Thu, 26 Apr 2012 02:20:58 +0000 (21:20 -0500)
(cherry picked from commit 214da7bcd1ef52c46d4e77c787517d9403c97046)

test/post/test-post-common.sh
test/post/test-post-fcc

index 856c399..7bc67e3 100755 (executable)
@@ -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"
 }
index 946969c..2fdd9de 100755 (executable)
@@ -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}