common/fuzzy: fix fuzz verb scanning
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 18 Aug 2017 20:52:28 +0000 (13:52 -0700)
committerEryu Guan <eguan@redhat.com>
Tue, 22 Aug 2017 03:20:07 +0000 (11:20 +0800)
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 <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/fuzzy

index ea22c3ef08a335222bd4b4935b000d70892644a5..8453c29fc9e36097ce72c5a10d04893ba813a3c2 100644 (file)
@@ -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