xfs/293: tighten up checks for documented xfs_io commands
authorEric Sandeen <sandeen@redhat.com>
Mon, 21 Dec 2015 07:01:47 +0000 (18:01 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Dec 2015 07:01:47 +0000 (18:01 +1100)
Some commands (like "zero") are simple words which commonly
occur in the manpage text even if they aren't documented as
commands.

Grep for "   $COMMAND" instead of the bare word, because
the documented commands show up as indented.

This reveals that the "zero" command is not documented yet.
(It catches "help" too, because it's documented differently;
I'll fix that up in the manpage when I add "zero").

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/293

index d1a285337b7f5672f924be1a134861b54d0b92b4..ade6015481cf0b39864e2f7abf2c92d3de183a77 100755 (executable)
@@ -49,7 +49,7 @@ _supported_os IRIX Linux
 echo "Silence is golden"
 
 for COMMAND in `$XFS_IO_PROG -c help | awk '{print $1}' | grep -v "^Use"`; do
-  man xfs_io | col -b | grep -wq $COMMAND || \
+  man xfs_io | col -b | grep -wq "   $COMMAND" || \
        echo "$COMMAND not documented in the xfs_io manpage"
 done