Skip to contentSkip to conversation

fstests: remove $seqres.full before test to avoid keep-growing log file

PATCH New Eryu Guan 1 participant 1 message Jun 24, 2015

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 fstests: remove $seqres.full before test to avoid keep-growing log file

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

---
 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(+)
tests/ext4/271 +1 -0
index e77ae57..217d0d8 100755
@@ -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
tests/generic/019 +1 -0
index ca196ca..76a09d5 100755
@@ -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
tests/generic/269 +1 -0
index cff5e54..fe648b5 100755
@@ -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
 
tests/generic/270 +1 -0
index cebd377..255ebf2 100755
@@ -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
tests/shared/272 +1 -0
index 4417535..11b2a00 100755
@@ -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
 
Signature · 1 line
2.4.3