From patchwork Mon Apr 23 09:46:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Myl=C3=A8ne_Josserand?= X-Patchwork-Id: 902851 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40V1p56WK8z9s06 for ; Mon, 23 Apr 2018 19:47:09 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 2149B3E77FC for ; Mon, 23 Apr 2018 11:47:07 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) by picard.linux.it (Postfix) with ESMTP id 51EA33E7557 for ; Mon, 23 Apr 2018 11:46:52 +0200 (CEST) Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by in-7.smtp.seeweb.it (Postfix) with ESMTP id AB786200D00 for ; Mon, 23 Apr 2018 11:46:51 +0200 (CEST) Received: by mail.bootlin.com (Postfix, from userid 110) id 9317E207BE; Mon, 23 Apr 2018 11:46:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it X-Spam-Level: X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 Received: from dell-desktop.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 6698720703; Mon, 23 Apr 2018 11:46:50 +0200 (CEST) From: =?utf-8?q?Myl=C3=A8ne_Josserand?= To: ltp@lists.linux.it Date: Mon, 23 Apr 2018 11:46:36 +0200 Message-Id: <20180423094639.14612-7-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180423094639.14612-1-mylene.josserand@bootlin.com> References: <20180423094639.14612-1-mylene.josserand@bootlin.com> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean Cc: thomas.petazzoni@bootlin.com Subject: [LTP] [RFC PATCH 6/9] testcases: wc: Add "unrecognized option" as TCONF X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" In case we are using Busybox, for example, some options may not available and leads to a test failure. This commit adds "unrecognized option" parsing to return the test as a TCONF and not FAIL anymore. Signed-off-by: Mylène Josserand Acked-by: Petr Vorel --- testcases/commands/wc/wc01.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/commands/wc/wc01.sh b/testcases/commands/wc/wc01.sh index e72819c51..74d69e254 100755 --- a/testcases/commands/wc/wc01.sh +++ b/testcases/commands/wc/wc01.sh @@ -40,7 +40,7 @@ wc_test() eval $wc_cmd > temp 2>&1 if [ $? -ne 0 ]; then - grep -q -E "unknown option|invalid option" temp + grep -q -E "unknown option|invalid option|unrecognized option" temp if [ $? -eq 0 ]; then tst_res TCONF "$wc_cmd not supported." else