]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fuzzy: compress coredumps created while fuzzing
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Dec 2022 22:19:41 +0000 (14:19 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 25 Feb 2023 13:13:55 +0000 (21:13 +0800)
Compress the coredumps and put them in the results directory.

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 3a60094285259ddae44352c3f6ef958a2b38e071..f5690a830323b65161a77e9e3ef9c12ddb48127f 100644 (file)
@@ -554,6 +554,14 @@ _scratch_xfs_fuzz_metadata() {
                echo "${verbs}" | while read fuzzverb; do
                        __scratch_xfs_fuzz_mdrestore
                        __scratch_xfs_fuzz_field_test "${field}" "${fuzzverb}" "${repair}" "$@"
+
+                       # Collect compresssed coredumps in the test results
+                       # directory if the sysadmin didn't override the default
+                       # coredump strategy.
+                       for i in core core.*; do
+                               test -f "$i" || continue
+                               _save_coredump "$i"
+                       done
                done
        done
 }