xfs/242: remove open-coded check for "zero" command

We have helpers for this, no need to open-code it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Eric Sandeen
2015-12-21 18:01:47 +11:00
committed by Dave Chinner
parent 7c8afd7a89
commit 7317a09cc5
+1 -8
View File
@@ -47,14 +47,7 @@ _supported_fs xfs
_supported_os Linux _supported_os Linux
_require_test _require_test
_test_io_zero() _require_xfs_io_command "zero"
{
$XFS_IO_PROG -c "zero help" 2>&1 | \
grep 'command "zero" not found' > /dev/null
echo $?
}
[ $(_test_io_zero) -eq 0 ] && _notrun "zero command not supported"
testfile=$TEST_DIR/242.$$ testfile=$TEST_DIR/242.$$