]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: _notrun if _scratch_mkfs_sized failed
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Aug 2024 14:35:07 +0000 (07:35 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 8 Aug 2024 09:34:39 +0000 (17:34 +0800)
If we fail to create a file system of a specific size that means it can't
work with some of the options in $MKFS_OPTIONS like the log size.  Don't
fail the test case for that, but instead _norun it and display the options
that caused it to fail.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc

index afc33bbc20d57902bcdf5c458da9d2e510aad5e9..93d3663389663e0005708c7e6ae8f6b18b4484a9 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -1168,7 +1168,7 @@ _try_scratch_mkfs_sized()
 
 _scratch_mkfs_sized()
 {
-       _try_scratch_mkfs_sized $* || _fail "_scratch_mkfs_sized failed with ($*)"
+       _try_scratch_mkfs_sized $* || _notrun "_scratch_mkfs_sized failed with ($*)"
 }
 
 # Emulate an N-data-disk stripe w/ various stripe units