]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/740: move checking for a scratch device up
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Jun 2025 06:14:17 +0000 (08:14 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 20 Jun 2025 16:46:47 +0000 (00:46 +0800)
Commit 3ae8a19f97d0 ("generic/740: enable by default") moved these checks
down accidentally.  Move them back up to make the test exit gracefully
when no scratch device is provided.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/740

index c0a634f2302be1fbc3c7b0faceacbdb865c4bffc..ce55200f7bc34c8d995b505dd956eecf424cc925 100755 (executable)
@@ -21,13 +21,13 @@ _exclude_fs jfs
 _exclude_fs ocfs2
 _exclude_fs udf
 
+_require_scratch_nocheck
+_require_no_large_scratch_dev
+
 _require_block_device "${SCRATCH_DEV}"
 # not all the FS support zoned block device
 _require_non_zoned_device "${SCRATCH_DEV}"
 
-_require_scratch_nocheck
-_require_no_large_scratch_dev
-
 echo "Silence is golden."
 for fs in `echo ${MKFS_PROG}.* | sed -e "s:${MKFS_PROG}.::g"`
 do