From: Darrick J. Wong Date: Wed, 27 Sep 2017 01:04:19 +0000 (-0700) Subject: generic/45[34]: fix the xfs_scrub probe test X-Git-Tag: v2022.05.01~1857 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c114000c9712c603ee0a3454afa480e100f9f734;p=users%2Fhch%2Fxfstests-dev.git generic/45[34]: fix the xfs_scrub probe test We changed the name of the xfs_scrub verb from 'test' to 'probe', so fix xfstests to follow. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/generic/453 b/tests/generic/453 index d8fb1bd41..ff2973614 100755 --- a/tests/generic/453 +++ b/tests/generic/453 @@ -148,7 +148,7 @@ check_xfs_scrub() { fi # Does the ioctl work? - if $XFS_IO_PROG -x -c "scrub test 0" $SCRATCH_MNT 2>&1 | \ + if $XFS_IO_PROG -x -c "scrub probe 0" $SCRATCH_MNT 2>&1 | \ grep -q "Inappropriate ioctl"; then return 1 fi diff --git a/tests/generic/454 b/tests/generic/454 index 385e6de93..01279ee87 100755 --- a/tests/generic/454 +++ b/tests/generic/454 @@ -144,7 +144,7 @@ check_xfs_scrub() { fi # Does the ioctl work? - if $XFS_IO_PROG -x -c "scrub test 0" $SCRATCH_MNT 2>&1 | \ + if $XFS_IO_PROG -x -c "scrub probe 0" $SCRATCH_MNT 2>&1 | \ grep -q "Inappropriate ioctl"; then return 1 fi