From patchwork Wed Sep 14 09:06:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murphy Zhou X-Patchwork-Id: 12975888 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 862A4C6FA8A for ; Wed, 14 Sep 2022 09:15:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbiINJPa (ORCPT ); Wed, 14 Sep 2022 05:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231772AbiINJOY (ORCPT ); Wed, 14 Sep 2022 05:14:24 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0567F7D1FE for ; Wed, 14 Sep 2022 02:06:31 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id z18so10645142qts.7 for ; Wed, 14 Sep 2022 02:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=cqHHCRemQkr6M9EHuMA0Jc3rE4+M2reseIZDOOR87wk=; b=B2sNbxs0xyH/tHWxhIEQut+I/8B0TvnS2pdSlpttVQl8Damum9tBjIZWfgwofixjV7 +VkGsUR71d78CKPvht8Gj9kr5FB1PDmagApLcUMtIJnBa2b7cpcOcAdoSGzOZbQ2xvXM Jo91o/IjLxoVpZGS1IU6OP8hOhrmJ5Vc+pfRfSxR6eIBVUrd7TbQlyK5DbWO5ClyvD1E e7IsOLTzRPBiQdHKlEjyVk4PQ43c7e71lEHq8bk0tkPilHLUmOSJMyKtMhowaiJyTXre dHkKGMmdv8Zmt4FNBRGTwLMeufUO7nciPxTKdNUSntQsekcj/OvChVxW70jFnxDTB5lz HK8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=cqHHCRemQkr6M9EHuMA0Jc3rE4+M2reseIZDOOR87wk=; b=NAtXH2QwiNYt1VjdL0blcn5ioSyROGh/X4+CjC94gAcjV1Gi6wK8EFvG7ipnI7CNQ4 plo9m5tMFNOreEGa+PXlgS2cmGlLzOpaTOCs2N6wRQZHn12Ad3EgRTtcsZJyUpBy9ARx 8SjK0lCQGpVfG/jAAe6umxxKuSoCe4uXJ9qrsW1gOY5eurhdc45S3x4NW1inPVw+EVUo snHDR21WTaLhLASIJ8yQMvoMwM4BouyR6SaPyNJ+Zs60jfCu6ICUJsVah26gBM/x3NLn B8VtXKLZOla+jytC98Xuwzqh44st/PGtFAIcBiRN+gLt2neh9anqMjchYzYMd5YxOu1+ Jwew== X-Gm-Message-State: ACgBeo122UT2WI234kjYOHfchufkc2iG7H3RS22AGehqpqprTNw0ZJvi RAbyzBNESsye/BjhM+Xm+mJQQi43yuY= X-Google-Smtp-Source: AA6agR4CHK0WOUdi03PNiiCtENajtGkwo/f7FSgMXTtFrBvVd9tVvGgO+PxYwgCziOq4FW5h/htSqA== X-Received: by 2002:ac8:59d2:0:b0:343:57f:3049 with SMTP id f18-20020ac859d2000000b00343057f3049mr30706929qtf.55.1663146380745; Wed, 14 Sep 2022 02:06:20 -0700 (PDT) Received: from xzhouw.hosts.qa.psi.rdu2.redhat.com ([66.187.232.127]) by smtp.gmail.com with ESMTPSA id cp4-20020a05622a420400b0035bab4dd6c9sm1250324qtb.22.2022.09.14.02.06.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 02:06:20 -0700 (PDT) From: Murphy Zhou To: fstests@vger.kernel.org Subject: [PATCH 1/2] egrep, fgrep: deprecated Date: Wed, 14 Sep 2022 17:06:09 +0800 Message-Id: <20220914090610.1994485-1-jencce.kernel@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Since this grep commit: commit a9515624709865d480e3142fd959bccd1c9372d1 Author: Paul Eggert Date: Sun Aug 15 10:52:13 2021 -0700 egrep, fgrep: now obsolete egrep will trigger a warning like: +egrep: warning: egrep is obsolescent; using grep -E This will break many gold output. Signed-off-by: Murphy Zhou --- check | 2 +- common/btrfs | 4 ++-- common/dmlogwrites | 2 +- common/dump | 4 ++-- common/encrypt | 4 ++-- common/filter | 2 +- common/fuzzy | 6 +++--- common/populate | 2 +- common/quota | 8 ++++---- common/rc | 36 ++++++++++++++++++------------------ common/repair | 2 +- common/xfs | 12 ++++++------ tests/btrfs/011 | 2 +- tests/btrfs/100 | 2 +- tests/btrfs/101 | 2 +- tests/btrfs/187 | 2 +- tests/btrfs/252 | 2 +- tests/ext4/006 | 2 +- tests/generic/164 | 2 +- tests/generic/165 | 2 +- tests/generic/454 | 2 +- tests/generic/670 | 2 +- tests/xfs/008 | 2 +- tests/xfs/012 | 2 +- tests/xfs/033 | 2 +- tests/xfs/064 | 4 ++-- tests/xfs/065 | 2 +- tests/xfs/083 | 2 +- tests/xfs/122 | 4 ++-- tests/xfs/138 | 2 +- tests/xfs/185 | 2 +- tests/xfs/186 | 4 ++-- tests/xfs/293 | 2 +- tests/xfs/330 | 2 +- tests/xfs/422 | 2 +- tests/xfs/499 | 2 +- tests/xfs/505 | 2 +- tests/xfs/514 | 2 +- tests/xfs/515 | 2 +- tests/xfs/517 | 2 +- tests/xfs/520 | 2 +- tests/xfs/530 | 2 +- tests/xfs/539 | 2 +- 43 files changed, 76 insertions(+), 76 deletions(-) diff --git a/check b/check index 0b2f10ed..1a43c116 100755 --- a/check +++ b/check @@ -389,7 +389,7 @@ if $have_test_arg; then test_name=`basename $t` group_file=$SRC_DIR/$test_dir/group.list - if egrep -q "^$test_name" $group_file; then + if grep -Eq "^$test_name" $group_file; then # in group file ... OK echo $SRC_DIR/$test_dir/$test_name \ >>$tmp.arglist diff --git a/common/btrfs b/common/btrfs index bd2639bf..d27d3384 100644 --- a/common/btrfs +++ b/common/btrfs @@ -9,7 +9,7 @@ _btrfs_get_subvolid() mnt=$1 name=$2 - $BTRFS_UTIL_PROG sub list $mnt | egrep "\s$name$" | $AWK_PROG '{ print $2 }' + $BTRFS_UTIL_PROG sub list $mnt | grep -E "\s$name$" | $AWK_PROG '{ print $2 }' } # _require_btrfs_command [|