Skip to contentSkip to conversation

tools: make convert-group ignore converted test files

PATCH New Darrick J. Wong 1 participant 1 message Jul 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: make convert-group ignore converted test files

From: Darrick J. Wong <[email protected]>

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.

---
 tools/convert-group |    2 ++
 1 file changed, 2 insertions(+)
tools/convert-group +2 -0
index 81ad9934..981aa87c 100755
@@ -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