fstests: add missing remove of the $seqres.full file for some tests
authorFilipe Manana <fdmanana@suse.com>
Thu, 29 Oct 2020 12:09:06 +0000 (12:09 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 1 Nov 2020 16:25:08 +0000 (00:25 +0800)
Some test cases are missing the 'rm -f $seqres.full' line but are appending
to that file, so everytime they run that file gets bigger and bigger (some
of them are using about a dozen megabytes on one of my test boxes).

So just add the 'rm -f $seqres.full' line to them, together with the comment
that the 'new' script generates for new test cases.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/033
tests/btrfs/036
tests/btrfs/114
tests/btrfs/115
tests/btrfs/205
tests/shared/298

index 0b9fbe279e3b17a777e16e3006f7b06bd54d47b8..d1f8a4db75a3ae3c25ebe17363492475425b963d 100755 (executable)
@@ -25,6 +25,9 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
 . ./common/rc
 . ./common/filter
 
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
 # real QA test starts here
 _supported_fs btrfs
 _require_scratch
index cd7a81e53321990ba31621aa1a4077347efefbea..36b652fd7fd7f9898f1efe90f61261858acdc3c3 100755 (executable)
@@ -49,6 +49,9 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
 . ./common/rc
 . ./common/filter
 
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
 # real QA test starts here
 _supported_fs btrfs
 _require_scratch
index a4b8bafad27f0b72bb6626435aed08dadc928910..2d9546a1b112ba54104551018df65dce460eeba6 100755 (executable)
@@ -26,6 +26,9 @@ _cleanup()
 . ./common/rc
 . ./common/filter
 
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
 # real QA test starts here
 _supported_fs btrfs
 _require_scratch
index eac0e33dca7d4276caf2d979a7ed5781da0f3bfd..02ae4e1deda39396a2fc4423d755bf50d0e8d2e4 100755 (executable)
@@ -26,6 +26,9 @@ _cleanup()
 . ./common/rc
 . ./common/filter
 
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
 # real QA test starts here
 _supported_fs btrfs
 _require_scratch
index b335ac3de9a637180e62a1138e101ad82744df84..b53e0e527de00c7045d5d2cf585fe553e7aef713 100755 (executable)
@@ -31,6 +31,9 @@ _cleanup()
 . ./common/filter
 . ./common/reflink
 
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
 # real QA test starts here
 _supported_fs btrfs
 _require_scratch_reflink
index 416a89d347788a3c059288c430026b49d5d28535..5cb30fc983f7a8de3ba37fd5f4892766c41227cd 100755 (executable)
@@ -15,6 +15,9 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 
 . ./common/rc
 
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
 _supported_fs ext4 xfs btrfs
 _require_test
 _require_loop