From: David Levine Date: Sun, 9 Feb 2014 04:23:17 +0000 (-0600) Subject: Remove mhbuild backup files at end of a couple of tests, if successful. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/03b8e51a39f9c4c4c2182512602eb22736751a0c?ds=inline Remove mhbuild backup files at end of a couple of tests, if successful. --- diff --git a/test/mhbuild/test-attach b/test/mhbuild/test-attach index 12d3da39..6d5a5945 100755 --- a/test/mhbuild/test-attach +++ b/test/mhbuild/test-attach @@ -17,6 +17,7 @@ setup_test LC_ALL=en_US.UTF-8; export LC_ALL draft="$MH_TEST_DIR/$$.draft" +backup="${MH_TEST_DIR}/`mhparam sbackup`$$.draft.orig" expected="$MH_TEST_DIR/$$.expected" # @@ -270,4 +271,6 @@ EOF check "$draft" "$expected" +[ ${failed:=0} -eq 0 ] && rm -f ${backup} + exit ${failed:-0} diff --git a/test/mhbuild/test-cte b/test/mhbuild/test-cte index 1ccfe199..f996e73e 100755 --- a/test/mhbuild/test-cte +++ b/test/mhbuild/test-cte @@ -19,6 +19,7 @@ set -e LC_ALL=en_US.UTF-8; export LC_ALL draft="$MH_TEST_DIR/$$.draft" +backup="${MH_TEST_DIR}/`mhparam sbackup`$$.draft.orig" expected="$MH_TEST_DIR/$$.expected" # @@ -356,7 +357,7 @@ To: Mr Test cc: Fcc: +outbox ------ -This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +This is the test of a lønger line than the usual limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? EOF run_prog mhbuild -maxunencoded 200 "$draft" @@ -369,9 +370,11 @@ MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit -This is the test of a lønger line than the ususal limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? +This is the test of a lønger line than the usual limit. Assuming we set the maxunencded parameter properly, this should end up as 8bit? EOF check "$draft" "$expected" +[ ${failed:=0} -eq 0 ] && rm -f ${backup} + exit ${failed:-0}