]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
fstests: remove $seqres.full before tests run
authorEryu Guan <eguan@redhat.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:49 +0000 (14:10 +1000)
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 <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/ext4/271
tests/generic/019
tests/generic/269
tests/generic/270
tests/shared/272

index e77ae57fd8874d1f59af83ce0bac395745568509..217d0d89f056f79f889e17e5a321167c4c3cb9dd 100755 (executable)
@@ -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
index ca196ca51038d3e70dfbb387c3063eff5a0f6761..76a09d5e221708853adfe3b14cb44ed2abb2561d 100755 (executable)
@@ -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
index cff5e54d8a94483cf3b5cb6e656de82e43855c31..fe648b59bcecea5fde217fae3ba1c9f892384dc4 100755 (executable)
@@ -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
 
index cebd377ef670b9150c6ae9efcbd287515e6eda6c..255ebf2352f62e43760a546759730a2aad08b27f 100755 (executable)
@@ -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
index 4417535cf3425f271063afc34419066193a7fdc0..11b2a00a4fff57a36ca6a27ba0b2d2a3cf9f06bb 100755 (executable)
@@ -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