mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fstests: check for unknown flag result in _require_xfs_io_command
If we are testing for "xfs_io -c chattr $FOO" be sure to catch any unknown flag output and _notrun Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
@@ -2255,6 +2255,8 @@ _require_xfs_io_command()
|
||||
_notrun "xfs_io $command $param_checked not supported on $FSTYP"
|
||||
echo $testio | grep -q "Function not implemented" && \
|
||||
_notrun "xfs_io $command $param_checked support is missing (missing syscall?)"
|
||||
echo $testio | grep -q "unknown flag" && \
|
||||
_notrun "xfs_io $command $param_checked support is missing (unknown flag)"
|
||||
|
||||
[ -n "$param" ] || return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user