public inbox for bzip2-devel@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: bzip2-devel@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [bzip2-tests] Remove testfilecopy after second decompression attempt.
Date: Tue, 01 Jan 2019 00:00:00 -0000	[thread overview]
Message-ID: <1562180342-4638-1-git-send-email-mark@klomp.org> (raw)

I committed this small tweak that makes sure the test dir is fully
cleaned up.

We run tests twice, once in default mode and once in small mode.
For the recompression/redecompression attempt we create a copy of
the original input file. Which we remove after the first attempt
in default mode. It should also be removed after the second attempt
in small mode. Otherwise we keep a possibly very large file around.
---
 run-tests.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/run-tests.sh b/run-tests.sh
index 8fccf2c..c07deea 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -137,6 +137,8 @@ while IFS= read -r -d '' bzfile; do
            nogood=$[${nogood}+1]; continue; }
   fi
 
+  rm "${copy}"
+
 done < <(find ${TESTS_DIR} -type f -name \*\.bz2 -print0)
 
 echo
-- 
1.8.3.1

                 reply	other threads:[~2019-07-03 18:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1562180342-4638-1-git-send-email-mark@klomp.org \
    --to=mark@klomp.org \
    --cc=bzip2-devel@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).