From: Eryu Guan Date: Tue, 4 Aug 2015 04:10:49 +0000 (+1000) Subject: fstests: remove $seqres.full before tests run X-Git-Tag: v2022.05.01~2846 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6733157f0fac8df99c90a2ef3e40e79fd271128e;p=users%2Fhch%2Fxfstests-dev.git fstests: remove $seqres.full before tests run Some tests append logs to $seqres.full and never remove the log, which keeps the log file growing. Remove $seqres.full before test in following tests: ext4/271 generic/019 generic/269 generic/270 shared/272 Signed-off-by: Eryu Guan Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/tests/ext4/271 b/tests/ext4/271 index e77ae57fd..217d0d89f 100755 --- a/tests/ext4/271 +++ b/tests/ext4/271 @@ -41,6 +41,7 @@ _supported_os Linux _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seqres.full 2>&1 # -onoload and EXT4_SYNC_FL on file is important becase result in diff --git a/tests/generic/019 b/tests/generic/019 index ca196ca51..76a09d5e2 100755 --- a/tests/generic/019 +++ b/tests/generic/019 @@ -173,6 +173,7 @@ _workout() # real QA test starts here +rm -f $seqres.full _scratch_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed" _scratch_mount || _fail "mount failed" allow_fail_make_request diff --git a/tests/generic/269 b/tests/generic/269 index cff5e54d8..fe648b59b 100755 --- a/tests/generic/269 +++ b/tests/generic/269 @@ -66,6 +66,7 @@ _supported_os Linux _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount diff --git a/tests/generic/270 b/tests/generic/270 index cebd377ef..255ebf235 100755 --- a/tests/generic/270 +++ b/tests/generic/270 @@ -81,6 +81,7 @@ _require_user _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota" chmod 777 $SCRATCH_MNT diff --git a/tests/shared/272 b/tests/shared/272 index 4417535cf..11b2a00a4 100755 --- a/tests/shared/272 +++ b/tests/shared/272 @@ -87,6 +87,7 @@ _supported_os Linux _need_to_be_root _require_scratch +rm -f $seqres.full _scratch_mkfs_sized $((64 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount