Let mancheck_utils ignore version subcommands
authorBenjamin Kaduk <kaduk@mit.edu>
Mon, 8 Sep 2014 17:42:27 +0000 (13:42 -0400)
committerD Brashear <shadow@your-file-system.com>
Wed, 8 Oct 2014 14:55:22 +0000 (10:55 -0400)
We don't have a man page for the 'version' subcommand, which has
"always" been present but only recently was exposed to the usage.
It's okay to not have a man page for it, so tell the test infrastructure
to not complain about its absence.

Change-Id: Ife834d41797d1d1efe403b204736ac85d62724e9
Reviewed-on: http://gerrit.openafs.org/11452
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Tested-by: D Brashear <shadow@your-file-system.com>

tests/tests-lib/perl5/mancheck_utils.pm

index 6b56274..edfa8fc 100644 (file)
@@ -35,6 +35,8 @@ sub lookup_sub_commands {
     while (<HELPOUT>) {
         # Skip the header thingy
         next if /Commands are/;
+        # Skip the version subcommand, it's always present but not interesting
+        next if /^version/;
         @comm = split();
         push(@subcommlist, $comm[0]);
     }