From: Eric Sandeen Date: Mon, 21 Dec 2015 07:01:47 +0000 (+1100) Subject: xfs/242: remove open-coded check for "zero" command X-Git-Tag: v2022.05.01~2716 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=7317a09cc5a521b460ada7a5c674f06dff4a5257 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 Reviewed-by: Eryu Guan Signed-off-by: Dave Chinner --- diff --git a/tests/xfs/242 b/tests/xfs/242 index 304e69f6..4e1a8b44 100755 --- a/tests/xfs/242 +++ b/tests/xfs/242 @@ -47,14 +47,7 @@ _supported_fs xfs _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.$$