From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130758 invoked by alias); 3 Jul 2019 18:59:14 -0000 Mailing-List: contact bzip2-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Sender: bzip2-devel-owner@sourceware.org Received: (qmail 130748 invoked by uid 89); 3 Jul 2019 18:59:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-19.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=H*Ad:U*mark, HX-Languages-Length:837 X-Spam-Status: No, score=-19.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org From: Mark Wielaard To: bzip2-devel@sourceware.org Cc: Mark Wielaard Subject: [bzip2-tests] Remove testfilecopy after second decompression attempt. Date: Tue, 01 Jan 2019 00:00:00 -0000 Message-Id: <1562180342-4638-1-git-send-email-mark@klomp.org> X-Mailer: git-send-email 1.8.3.1 X-Spam-Flag: NO X-SW-Source: 2019-q3/txt/msg00008.txt.bz2 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