From 6733157f0fac8df99c90a2ef3e40e79fd271128e Mon Sep 17 00:00:00 2001 From: Eryu Guan Date: Tue, 4 Aug 2015 14:10:49 +1000 Subject: [PATCH] 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 --- tests/ext4/271 | 1 + tests/generic/019 | 1 + tests/generic/269 | 1 + tests/generic/270 | 1 + tests/shared/272 | 1 + 5 files changed, 5 insertions(+) diff --git a/tests/ext4/271 b/tests/ext4/271 index e77ae57f..217d0d89 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 ca196ca5..76a09d5e 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 cff5e54d..fe648b59 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 cebd377e..255ebf23 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 4417535c..11b2a00a 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 -- 2.47.3