]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs/541: _notrun if the file system can't mount
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Jan 2025 08:24:51 +0000 (09:24 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Jan 2025 05:01:11 +0000 (06:01 +0100)
A file system created without an RT section might not be able to mount
with an rtdev specified if the RT device has a larger LBA size.

Instead of letting the test fail, _notrun it for that case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
tests/xfs/541

index 9be15d1f6027e659285125742bf7f0dffe5fa68b..b4856d496d5e3ba2178a0ffc16834975ee9c5cdb 100755 (executable)
@@ -28,7 +28,7 @@ _require_scratch
 
 # Format scratch fs with no realtime section.
 SCRATCH_RTDEV="" _scratch_mkfs | _filter_mkfs 2> $tmp.mkfs >> $seqres.full
-_scratch_mount
+_try_scratch_mount || _notrun "Can't mount file system"
 
 # Check that there's no realtime section.
 source $tmp.mkfs