From: Darrick J. Wong Date: Fri, 18 Aug 2017 20:52:28 +0000 (-0700) Subject: common/fuzzy: fix fuzz verb scanning X-Git-Tag: v2022.05.01~1914 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=56a2da04672eddd3f7b2803e9d260d9cbfc8b95b common/fuzzy: fix fuzz verb scanning As part of upstreaming, the xfs_db fuzz command change the help output which breaks the fuzzers' ability to detect fuzz verbs. Fix that. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/fuzzy b/common/fuzzy index ea22c3ef..8453c29f 100644 --- a/common/fuzzy +++ b/common/fuzzy @@ -312,8 +312,8 @@ _scratch_xfs_list_fuzz_verbs() { echo "${SCRATCH_XFS_LIST_FUZZ_VERBS}" | tr '[ ,]' '[\n\n]' return; fi - _scratch_xfs_db -x -c 'sb 0' -c 'fuzz' | grep '^Verbs:' | \ - sed -e 's/[,.]//g' -e 's/Verbs: //g' -e 's/ /\n/g' + _scratch_xfs_db -x -c 'sb 0' -c 'fuzz' | grep '^Fuzz commands:' | \ + sed -e 's/[,.]//g' -e 's/Fuzz commands: //g' -e 's/ /\n/g' } # Fuzz some of the fields of some piece of metadata