From patchwork Sun Jun 23 23:09:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 11011957 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 30A34924 for ; Mon, 24 Jun 2019 01:43:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23EA228874 for ; Mon, 24 Jun 2019 01:43:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17FA828AF7; Mon, 24 Jun 2019 01:43:05 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 C542E28874 for ; Mon, 24 Jun 2019 01:43:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727114AbfFXBnE (ORCPT ); Sun, 23 Jun 2019 21:43:04 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:57197 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726729AbfFXBnE (ORCPT ); Sun, 23 Jun 2019 21:43:04 -0400 Received: from callcc.thunk.org (139.sub-174-242-139.myvzw.com [174.242.139.139]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x5NNOi3j010804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 23 Jun 2019 19:24:45 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 9C7CA42046F; Sun, 23 Jun 2019 19:10:00 -0400 (EDT) From: "Theodore Ts'o" To: fstests@vger.kernel.org Cc: "Theodore Ts'o" Subject: [PATCH 2/5] check: add ext4 group list when testing ext2 and ext3 Date: Sun, 23 Jun 2019 19:09:53 -0400 Message-Id: <20190623230956.24670-2-tytso@mit.edu> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190623230956.24670-1-tytso@mit.edu> References: <20190623230956.24670-1-tytso@mit.edu> MIME-Version: 1.0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Modern kernels use the ext4 implementation to support ext2 and ext3 mounts, and a number of the ext4 tests are actually suitable for ext2 and ext3. We're trying to move tests out of shared anyway, so instead of moving tests from ext4/NNN to shared, let's just include the ext4 group list when FSTYP is ext2 or ext3. Signed-off-by: Theodore Ts'o --- check | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check b/check index 7511e1ce..2a5d8ab1 100755 --- a/check +++ b/check @@ -130,6 +130,7 @@ get_group_list() local grp=$1 local grpl="" local sub=$(dirname $grp) + local fsgroup="$FSTYP" if [ -n "$sub" -a "$sub" != "." -a -d "$SRC_DIR/$sub" ]; then # group is given as / (e.g. xfs/quick) @@ -138,7 +139,10 @@ get_group_list() return fi - for d in $SRC_GROUPS $FSTYP; do + if [ "$FSTYP" = ext2 -o "$FSTYP" = ext3 ]; then + fsgroup=ext4 + fi + for d in $SRC_GROUPS $fsgroup; do if ! test -d "$SRC_DIR/$d" ; then continue fi