]> diplodocus.org Git - nmh/blobdiff - test/common.sh.in
Autoconf/automake cleanup
[nmh] / test / common.sh.in
index d0a4586c2407f3226940365a7a6ab0a6b2dba20c..f7624ca85a70a6663812ea4f8ecf00ed7c569606 100644 (file)
@@ -167,13 +167,12 @@ setup_test ()
     #### so that we use fakesmtp.
     #### And set up the maildrop in the test directory so tests don't
     #### use the user's real maildrop.
+    #### test-slocal needs to look at the original mts.conf, so save it.
+    mv -f "${MHMTSCONF}" "${MHMTSCONF}.old"
     sed -e 's/mts: *.*/mts: smtp/' \
         -e "s%mmdfldir: *.*%mmdfldir: ${MH_TEST_DIR}/Mail%" \
         -e 's%mmdflfil: *.*%mmdflfil: maildrop%' \
-        "${MHMTSCONF}" >"${MHMTSCONF}.new"
-    #### test-slocal needs to look at the original mts.conf, so save it.
-    mv -f "${MHMTSCONF}" "${MHMTSCONF}.old"
-    mv -f "${MHMTSCONF}.new" "${MHMTSCONF}"
+        "${MHMTSCONF}.old" >"${MHMTSCONF}"
   fi
 
   # clean old test data