]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/fuzzy: add an underline to the full log between sections
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Dec 2022 22:19:40 +0000 (14:19 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 25 Feb 2023 13:09:35 +0000 (21:09 +0800)
The fuzz scripts use __fuzz_notify in effect to log each step in the
fuzz process.  Enhance it to print an "underline" to ease readability a
bit.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/fuzzy

index a2aa089baaccbfff72185c07d07ab7da27afbdf3..eb5343b066b51616fe290a672c29bc3ab7699d38 100644 (file)
@@ -190,7 +190,9 @@ __scratch_xfs_fuzz_mdrestore()
 }
 
 __fuzz_notify() {
+       echo '========================================'
        echo "$@"
+       echo '========================================'
        test -w /dev/ttyprintk && echo "$@" >> /dev/ttyprintk
 }
 
@@ -348,7 +350,6 @@ __scratch_xfs_fuzz_field_test() {
 
        # Set the new field value
        __fuzz_notify "+ Fuzz ${field} = ${fuzzverb}"
-       echo "========================"
        _scratch_xfs_fuzz_metadata_field "${field}" ${fuzzverb} "$@"
        res=$?
        test $res -ne 0 && return