From: Zorro Lang <zlang@redhat.com>
To: Pavel Reichl <preichl@redhat.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH 3/4] generic: cleanup test files
Date: Thu, 22 Sep 2022 22:36:38 +0800 [thread overview]
Message-ID: <20220922143638.ruwujtwblv43sgfo@zlang-mailbox> (raw)
In-Reply-To: <20220922134822.1020119-3-preichl@redhat.com>
On Thu, Sep 22, 2022 at 03:48:21PM +0200, Pavel Reichl wrote:
> There seems to be some seek_sanity_testfile files that are not
> cleaned up and take up space.
>
> -rwxr-xr-x. 1 root root 8.0G Sep 22 13:39 seek_sanity_testfile10
>
> Signed-off-by: Pavel Reichl <preichl@redhat.com>
> ---
> tests/generic/285 | 2 +-
> tests/generic/436 | 2 +-
> tests/generic/445 | 2 +-
> tests/generic/448 | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tests/generic/285 b/tests/generic/285
> index 6c755b5f..d1850021 100755
> --- a/tests/generic/285
> +++ b/tests/generic/285
> @@ -28,7 +28,7 @@ _require_test_program "seek_sanity_test"
> # Override the default cleanup function.
> _cleanup()
> {
> - eval "rm -f $BASE_TEST_FILE.*"
> + rm -f $BASE_TEST_FILE*
OK, this eval looks not reasonable.
> }
>
> _run_seek_sanity_test $BASE_TEST_FILE > $seqres.full 2>&1 ||
> diff --git a/tests/generic/436 b/tests/generic/436
> index 7fb24b41..d54af436 100755
> --- a/tests/generic/436
> +++ b/tests/generic/436
> @@ -16,7 +16,7 @@ BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
I'm wondering two questions:
1) If these cases all use $TEST_DIR/seek_sanity_testfile, and don't really
remove these seek_sanity_testfile* files, will them affect each testing
result? Can we set BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile_$seq
at least, to avoid they use same files?
2) If these $BASE_TEST_FILE* files won't take too much space, and won't affect
later testing, how about keeping them in $TEST_DIR, then remove these
specific _cleanup(). From my testing, after running g/285, g/436, g/445 and
g/448, I got [1]. Looks like they only takes ~25M space.
Thanks,
Zorro
[1]
# du -h /mnt/test/
25M /mnt/test/
# du -h /mnt/test/seek_sanity_testfile*
4.0K /mnt/test/seek_sanity_testfile
0 /mnt/test/seek_sanity_testfile01
4.0K /mnt/test/seek_sanity_testfile02
12K /mnt/test/seek_sanity_testfile03
4.0K /mnt/test/seek_sanity_testfile04
4.0K /mnt/test/seek_sanity_testfile05
8.0K /mnt/test/seek_sanity_testfile06
44K /mnt/test/seek_sanity_testfile07
44K /mnt/test/seek_sanity_testfile08
404K /mnt/test/seek_sanity_testfile09
128K /mnt/test/seek_sanity_testfile10
128K /mnt/test/seek_sanity_testfile11
128K /mnt/test/seek_sanity_testfile12
4.0M /mnt/test/seek_sanity_testfile13
4.0M /mnt/test/seek_sanity_testfile14
12M /mnt/test/seek_sanity_testfile15
4.0M /mnt/test/seek_sanity_testfile16
0 /mnt/test/seek_sanity_testfile17
0 /mnt/test/seek_sanity_testfile_44818
> # Override the default cleanup function.
> _cleanup()
> {
> - rm -f $tmp.* $BASE_TEST_FILE.*
> + rm -f $tmp.* $BASE_TEST_FILE*
> }
>
> # Import common functions.
> diff --git a/tests/generic/445 b/tests/generic/445
> index 05d1c5b3..d9e9f84b 100755
> --- a/tests/generic/445
> +++ b/tests/generic/445
> @@ -16,7 +16,7 @@ BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
> # Override the default cleanup function.
> _cleanup()
> {
> - rm -f $tmp.* $BASE_TEST_FILE.*
> + rm -f $tmp.* $BASE_TEST_FILE*
> }
>
> # Import common functions.
> diff --git a/tests/generic/448 b/tests/generic/448
> index d66967bc..11945549 100755
> --- a/tests/generic/448
> +++ b/tests/generic/448
> @@ -15,7 +15,7 @@ BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile_$seq
> _cleanup()
> {
> cd /
> - rm -f $tmp.* $BASE_TEST_FILE
> + rm -f $tmp.* $BASE_TEST_FILE*
> }
>
> # Import common functions.
> --
> 2.37.3
>
next prev parent reply other threads:[~2022-09-22 14:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-22 13:48 [PATCH 1/4] common: Fix file leak in _get_max_file_size Pavel Reichl
2022-09-22 13:48 ` [PATCH 2/4] g/299: speed up the test Pavel Reichl
2022-09-22 15:16 ` Zorro Lang
2022-09-22 13:48 ` [PATCH 3/4] generic: cleanup test files Pavel Reichl
2022-09-22 14:36 ` Zorro Lang [this message]
[not found] ` <91ec6d59-5014-2e3e-8e80-aac162b8ffc1@redhat.com>
2022-09-22 15:08 ` Zorro Lang
2022-09-22 17:05 ` Pavel Reichl
2022-09-22 17:58 ` Zorro Lang
2022-09-22 13:48 ` [PATCH 4/4] g/394: clean up " Pavel Reichl
2022-09-22 15:04 ` Zorro Lang
2022-09-22 14:46 ` [PATCH 1/4] common: Fix file leak in _get_max_file_size Zorro Lang
2022-09-22 14:51 ` Pavel Reichl
2022-09-23 3:31 ` Eric Biggers
2022-09-23 5:04 ` Zorro Lang
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=20220922143638.ruwujtwblv43sgfo@zlang-mailbox \
--to=zlang@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=preichl@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.