[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bzip2-tests] Remove testfilecopy after second decompression attempt.

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; }
+  rm "${copy}"
 done < <(find ${TESTS_DIR} -type f -name \*\.bz2 -print0)