From patchwork Wed Aug 23 15:49:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9917645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 799C6603FA for ; Wed, 23 Aug 2017 15:48:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BFE12845E for ; Wed, 23 Aug 2017 15:48:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61171284E3; Wed, 23 Aug 2017 15:48:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0991F2845E for ; Wed, 23 Aug 2017 15:48:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932186AbdHWPsw (ORCPT ); Wed, 23 Aug 2017 11:48:52 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33515 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbdHWPsv (ORCPT ); Wed, 23 Aug 2017 11:48:51 -0400 Received: by mail-wm0-f65.google.com with SMTP id q189so573810wmd.0; Wed, 23 Aug 2017 08:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dUvGm1+bkj7fvGcoHfASc/zHczPWvL4yFLQlHrrDUZc=; b=OvmXby4ezs4ARSfPNa3yJsYqqbKsAM1qKeJz8geNSQB1jEO8Lg+pvoHAuiywDUbJSa sIUfT/y0G3edQNMW+Xdkydsb0UZYvR2Or5prbzWIAaVk72rsxSjzQjv3rCnWNaHmiI/A zCvzXhhTo6AcEFmfLJvrh7ao8E1U2GwJpAUeryRiKmJdcMIH0z8IeTCtj0xVUIfP9omJ zJVI3A79j1lP/Q12CPwr1ePsle94je5t1RINXrnxYZpaH2g/Z5kMHSlJpDA3Szqi0dka t0XM4XLtvELUdfgRIfvbC7qZIfmDxNZFAq8G56uCb7fJc67gszWgwQc6R2UGfM2LGJfl Pffw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dUvGm1+bkj7fvGcoHfASc/zHczPWvL4yFLQlHrrDUZc=; b=RwOuLpHmDOdiQulX0JllEoPOn6jEpryMWD5+/frjQknHvRE9cmDmP6RhhoqExhj7e7 jGM09OAeGddcXm4GOtgYb6Rzhzrhrvp4UqyalOxO89mg5Xjbm2f/6/9IkeVX9jxPWp7F Kk+TOMCso5bYVGrLYmsDnmZu2X5rTkwoVLvyyKjiSG9NvFLN83SO5oYeD0bsyvuzzrac NTGFZsc+GCJAmxyYJtN1zZ/D0xyuKzwflfFjDKxUu/e15zPcn1VwrSXy8JBCga0Ii6MV izM6XEqaLuACywT/8KcqUEYknxKZmvPXXTDpLWvKp+s4L/6anks2cqK6U/zp2FkRSlvZ vt1g== X-Gm-Message-State: AHYfb5iKbyJzh8b8c8OnyvBD7KfNMI547bXnzCPCs5XIV0FMdQ36TZhv sGyVwsuMfySz3g== X-Received: by 10.28.15.207 with SMTP id 198mr1924230wmp.177.1503503329661; Wed, 23 Aug 2017 08:48:49 -0700 (PDT) Received: from localhost.localdomain (bzq-79-182-137-119.red.bezeqint.net. [79.182.137.119]) by smtp.gmail.com with ESMTPSA id a6sm1938879wrh.51.2017.08.23.08.48.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Aug 2017 08:48:49 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Josef Bacik , Christoph Hellwig , fstests@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC][PATCH 1/8] common/rc: convert some egrep to grep Date: Wed, 23 Aug 2017 18:49:10 +0300 Message-Id: <1503503357-26234-2-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503503357-26234-1-git-send-email-amir73il@gmail.com> References: <1503503357-26234-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Amir Goldstein --- common/rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/rc b/common/rc index 9c5f54a..9d7b783 100644 --- a/common/rc +++ b/common/rc @@ -2177,7 +2177,7 @@ _require_xfs_io_command() ;; "fsmap" ) testio=`$XFS_IO_PROG -f -c "fsmap" $testfile 2>&1` - echo $testio | egrep -q "Inappropriate ioctl" && \ + echo $testio | grep -q "Inappropriate ioctl" && \ _notrun "xfs_io $command support is missing" ;; "open") @@ -2185,12 +2185,12 @@ _require_xfs_io_command() # a new -C flag was introduced to execute one shot commands. # Check for -C flag support as an indication for the bug fix. testio=`$XFS_IO_PROG -F -f -C "open $testfile" $testfile 2>&1` - echo $testio | egrep -q "invalid option" && \ + echo $testio | grep -q "invalid option" && \ _notrun "xfs_io $command support is missing" ;; "scrub"|"repair") testio=`$XFS_IO_PROG -x -c "$command dummy 0" $TEST_DIR 2>&1` - echo $testio | egrep -q "Inappropriate ioctl" && \ + echo $testio | grep -q "Inappropriate ioctl" && \ _notrun "xfs_io $command support is missing" ;; "utimes" ) @@ -2209,7 +2209,7 @@ _require_xfs_io_command() _notrun "xfs_io $command failed (old kernel/wrong fs/bad args?)" echo $testio | grep -q "foreign file active" && \ _notrun "xfs_io $command not supported on $FSTYP" - echo $testio | egrep -q "Function not implemented" && \ + echo $testio | grep -q "Function not implemented" && \ _notrun "xfs_io $command support is missing (missing syscall?)" if [ -n "$param" -a $param_checked -eq 0 ]; then