diff mbox series

[6/8] generic/745: rework support fs checking

Message ID 20240623121103.974270-7-hch@lst.de (mailing list archive)
State New, archived
Headers show
Series [1/8] remove support for ext4dev | expand

Commit Message

Christoph Hellwig June 23, 2024, 12:10 p.m. UTC
To prepare for deprecating _supported_fs use a case statement and
_notrun.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/generic/745 | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/tests/generic/745 b/tests/generic/745
index 0f47f9c69..bed43578a 100755
--- a/tests/generic/745
+++ b/tests/generic/745
@@ -27,16 +27,21 @@  _cleanup()
 . ./common/dmflakey
 . ./common/attr
 
-# real QA test starts here
+_require_scratch
+_require_dm_target flakey
+_require_attrs
 
 # We create a lot of xattrs for a single file. Only btrfs and xfs are currently
 # able to store such a large mount of xattrs per file, other filesystems such
 # as ext3/4 and f2fs for example, fail with ENOSPC even if we attempt to add
 # less than 1000 xattrs with very small values.
-_supported_fs btrfs xfs
-_require_scratch
-_require_dm_target flakey
-_require_attrs
+case "$FSTYP" in
+btrfs|xfs)
+	;;
+*)
+	_notrun "Requires support for > 1000 xattrs"
+	;;
+esac
 
 _scratch_mkfs >> $seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV