From: Darrick J. Wong Date: Sat, 3 Jul 2021 03:05:48 +0000 (-0700) Subject: tools: make convert-group ignore converted test files X-Git-Tag: v2022.05.01~349 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9419e671d0c41d76398734150811683f9f0d53e;p=xfstests-dev.git tools: make convert-group ignore converted test files 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- 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