]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/262: call _require_scratch_xfs_scrub
authorChristoph Hellwig <hch@lst.de>
Fri, 12 Jan 2024 05:08:32 +0000 (06:08 +0100)
committerZorro Lang <zlang@kernel.org>
Sun, 14 Jan 2024 12:39:09 +0000 (20:39 +0800)
Call _require_scratch_xfs_scrub so that the test is _notrun on kernels
without online scrub support.

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/xfs/262

index b28a6c88b75175ad8966a24a417290dd049668db..a4ff6a471c74c81f40b2cbfa5af9459fc5d0e128 100755 (executable)
@@ -29,6 +29,9 @@ _require_xfs_io_error_injection "force_repair"
 echo "Format and populate"
 _scratch_mkfs > "$seqres.full" 2>&1
 _scratch_mount
+
+_require_scratch_xfs_scrub
+
 cp $XFS_SCRUB_PROG $SCRATCH_MNT/xfs_scrub
 $LDD_PROG $XFS_SCRUB_PROG | sed -e '/\//!d;/linux-gate/d;/=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/' | while read lib; do
        cp $lib $SCRATCH_MNT/