]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs/262: call _scratch_require_xfs_scrub scrub-check
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Jan 2024 17:44:24 +0000 (18:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 12 Jan 2024 05:02:43 +0000 (06:02 +0100)
Call _scratch_require_xfs_scrub so that the test is _notrun on kernels
without online scrub support.

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

index b28a6c88b75175ad8966a24a417290dd049668db..0d1fd779d0b442827eeedd17d4ebe0709b128820 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
+
+_scratch_require_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/