From: David Levine Date: Fri, 7 Mar 2014 01:35:22 +0000 (-0600) Subject: Remove backup file at end of test-ext-params, and a temp file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/df44d1273c426806db05f6b29d8e7373ecfee3c6?ds=inline;hp=a670c9d22ff3a00459677c62d1929818c4e4c4e6 Remove backup file at end of test-ext-params, and a temp file. --- diff --git a/test/mhbuild/test-ext-params b/test/mhbuild/test-ext-params index 8294677a..adde9d95 100755 --- a/test/mhbuild/test-ext-params +++ b/test/mhbuild/test-ext-params @@ -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" # @@ -156,6 +157,7 @@ This is a test message EOF run_prog mhbuild "$draft" +rm -f "$MH_TEST_DIR/tïny.jpg" cat > "$expected" < @@ -223,4 +225,6 @@ EOF check "$draft" "$expected" +[ ${failed:=0} -eq 0 ] && rm -f ${backup} + exit ${failed:-0}