From 94b5a2d3e56390cfdd1cfb345dea3fed7119c404 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Fri, 30 Dec 2022 14:19:41 -0800 Subject: [PATCH] fuzzy: compress coredumps created while fuzzing Compress the coredumps and put them in the results directory. Signed-off-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- common/fuzzy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/fuzzy b/common/fuzzy index 3a600942..f5690a83 100644 --- a/common/fuzzy +++ b/common/fuzzy @@ -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 } -- 2.39.5