diff mbox series

[3/9] xfs/521,530: refactor scratch fs check

Message ID 161836228828.2754991.13327862649701948223.stgit@magnolia (mailing list archive)
State New, archived
Headers show
Series fstests: random fixes | expand

Commit Message

Darrick J. Wong April 14, 2021, 1:04 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Use the existing _check_scratch_fs helper to check the (modified)
scratch filesystem in these tests.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 tests/xfs/521 |    2 +-
 tests/xfs/530 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Christoph Hellwig April 14, 2021, 6:15 a.m. UTC | #1
On Tue, Apr 13, 2021 at 06:04:48PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> Use the existing _check_scratch_fs helper to check the (modified)
> scratch filesystem in these tests.
> 
> Signed-off-by: Darrick J. Wong <djwong@kernel.org>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/tests/xfs/521 b/tests/xfs/521
index e6c417b8..b8026d45 100755
--- a/tests/xfs/521
+++ b/tests/xfs/521
@@ -75,7 +75,7 @@  echo "Create more copies to make sure the bitmap really works"
 cp -p $testdir/original $testdir/copy3
 
 echo "Check filesystem"
-_check_xfs_filesystem $SCRATCH_DEV none $rtdev
+_check_scratch_fs
 
 # success, all done
 status=0
diff --git a/tests/xfs/530 b/tests/xfs/530
index 65c17af2..0e4dd6b5 100755
--- a/tests/xfs/530
+++ b/tests/xfs/530
@@ -114,7 +114,7 @@  for rtino in rbmino rsumino; do
 done
 
 echo "Check filesystem"
-_check_xfs_filesystem $SCRATCH_DEV none $rtdev
+_check_scratch_fs
 
 losetup -d $rtdev
 rm -f $TEST_DIR/$seq.rtvol