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>
_supported_os Linux
_require_test
-_test_io_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"
+_require_xfs_io_command "zero"
testfile=$TEST_DIR/242.$$