From patchwork Wed Aug 30 14:51:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9929829 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 7F28460383 for ; Wed, 30 Aug 2017 14:51:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FB56286A9 for ; Wed, 30 Aug 2017 14:51:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 649DA286AA; Wed, 30 Aug 2017 14:51:25 +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 0B7D8283FF for ; Wed, 30 Aug 2017 14:51:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751760AbdH3OvY (ORCPT ); Wed, 30 Aug 2017 10:51:24 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34787 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbdH3OvX (ORCPT ); Wed, 30 Aug 2017 10:51:23 -0400 Received: by mail-wm0-f65.google.com with SMTP id l19so2057443wmi.1; Wed, 30 Aug 2017 07:51:22 -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=CjgsbHDiogsUTxoLisXautaLtCHhZEYbiz75TSF3hdGqCKZCAygzeh/+7cry03Eg9R /AT+As9Q4lxx8WGokAPTm+QHjDL/9T4uz3rv+qj1WhmF+B7Eie0p4sG4mBF2exjV1c7t JPKtBFfc5s5NlGL8WWGyGeDGkxr8hPNhN/BR5QyiSwEcRa0d5IzFcUVI8ZyyaBCB1Zbn TK7OkBEqnIRT/8x0pIsXoxn6kLTK1osNxepj78LUg7ic0K5hdUaCoQhy9pNLd6PH3xBk 2HA9ZoM446K4T5vW1gSIz3wo92v4L5Vw4rJ5FV1qcE9SXh1XG87ADL07ROc34MjugNtN KR6Q== 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=f5UefS7yY5jFNM+razOceey+tviJPjwMiwuGSr4XJJLCgt5xF9DBp/NcWXMQ7XlSg9 gdY9e87lFDxLXvQcTF7jjWpNe8AKmNldnOi9WDrg6wDHE7CI1t/3mWViSazun4Aq77Gv 33/Syjz8JfOfzayisYJ+ZbFCbZsc9Og8xd/ge2/s6mTMAdNK9wNO2Va23CjkjhhpkhRq Kzs+T68JFuKOQPJm3xsnVCQ/HeXPB+MQ01NQxUXbOrm6VB110GVOdvlFLca1BLxfS/bY wIjwn8J4i7DebA+t+SQHS4jf0C5s3py3vtV82cTld1afnZtZONWKgLB9MnTBQvY13d0y e14A== X-Gm-Message-State: AHYfb5gYKJw3YetXwZFHXlBsJLDJ2AZMewM9IkgVwN2qqwt33OfqtYKX gPvUFBUpYYfUng== X-Received: by 10.28.151.141 with SMTP id z135mr1661556wmd.50.1504104681784; Wed, 30 Aug 2017 07:51:21 -0700 (PDT) Received: from localhost.localdomain (bzq-166-168-31-246.red.bezeqint.net. [31.168.166.246]) by smtp.gmail.com with ESMTPSA id f42sm2606306wrf.27.2017.08.30.07.51.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 07:51:21 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Josef Bacik , "Darrick J . Wong" , Christoph Hellwig , fstests@vger.kernel.org, linux-xfs@vger.kernel.org Subject: [PATCH v2 01/14] common/rc: convert some egrep to grep Date: Wed, 30 Aug 2017 17:51:33 +0300 Message-Id: <1504104706-11965-2-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504104706-11965-1-git-send-email-amir73il@gmail.com> References: <1504104706-11965-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 Reviewed-by: Darrick J. Wong --- 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