From patchwork Fri Dec 4 21:18:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 7771841 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6403A9F39B for ; Fri, 4 Dec 2015 21:18:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C4BC2061C for ; Fri, 4 Dec 2015 21:18:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A3DAE2041B for ; Fri, 4 Dec 2015 21:18:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754973AbbLDVS3 (ORCPT ); Fri, 4 Dec 2015 16:18:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50376 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756090AbbLDVSP (ORCPT ); Fri, 4 Dec 2015 16:18:15 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id BF63F121030 for ; Fri, 4 Dec 2015 21:18:15 +0000 (UTC) Received: from liberator.sandeen.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tB4LIEAm016080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 4 Dec 2015 16:18:15 -0500 To: fstests From: Eric Sandeen Subject: [PATCH] xfs/293: tighten up checks for documented xfs_io commands Message-ID: <56620316.4090104@redhat.com> Date: Fri, 4 Dec 2015 15:18:14 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Eryu Guan --- -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tests/xfs/293 b/tests/xfs/293 index d1a2853..ade6015 100755 --- a/tests/xfs/293 +++ b/tests/xfs/293 @@ -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