diff mbox series

[5/5] xfstests: check for unknown flag result in _require_xfs_io_command

Message ID 77631ab5-9354-549e-bd20-71e15c26cc52@redhat.com (mailing list archive)
State New, archived
Headers show
Series fstests: recent series rollup / misc tests & fixes | expand

Commit Message

Eric Sandeen May 18, 2020, 4:18 p.m. UTC
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>
---
 common/rc | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/common/rc b/common/rc
index 310fdc46..a6967831 100644
--- a/common/rc
+++ b/common/rc
@@ -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