public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools: make convert-group ignore converted test files
@ 2021-07-03  3:05 Darrick J. Wong
  0 siblings, 0 replies; only message in thread
From: Darrick J. Wong @ 2021-07-03  3:05 UTC (permalink / raw)
  To: Eryu Guan; +Cc: fstests

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-03  3:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-03  3:05 [PATCH] tools: make convert-group ignore converted test files Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox