All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Eryu Guan <guaneryu@gmail.com>
Cc: fstests <fstests@vger.kernel.org>
Subject: [PATCH] tools: make convert-group ignore converted test files
Date: Fri, 2 Jul 2021 20:05:48 -0700	[thread overview]
Message-ID: <20210703030548.GA24770@locust> (raw)

From: Darrick J. Wong <djwong@kernel.org>

Teach the tool that rewrites tests files to use _begin_fstest group
tagging to ignore tests that have already been treated.  This will make
it easier for people to rebase their dev branches.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 tools/convert-group |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/convert-group b/tools/convert-group
index 81ad9934..981aa87c 100755
--- a/tools/convert-group
+++ b/tools/convert-group
@@ -16,6 +16,8 @@ obliterate_group_file() {
 		elif [ ! -e "$test" ]; then
 			echo "Ignoring unknown test file \"$test\"."
 			continue
+		elif grep -q '^_begin_fstest' "$test"; then
+			continue
 		fi
 
 		# Replace all the open-coded test preparation code with a

                 reply	other threads:[~2021-07-03  3:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210703030548.GA24770@locust \
    --to=djwong@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=guaneryu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.