mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Dave Chinner
parent
7c8afd7a89
commit
7317a09cc5
+1
-8
@@ -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.$$
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user