diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-08-02 21:22:40 -0700 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2022-09-04 21:44:05 +0800 |
commit | de3717ae0985b9cda9d99a1290dbb5d8915cf089 (patch) | |
tree | d24cb5d570ef8950891b99cdb6b55fc908cec1af /check | |
parent | 4f929ebc59285d47f8a79c3d3f1e5f4ce316d6d0 (diff) |
common: filter internal errors during io error testing
The goal of an EIO shutdown test is to examine the shutdown and recovery
behavior if we make the underlying storage device return EIO. On XFS,
it's possible that the shutdown will come from a thread that cancels a
dirty transaction due to the EIO. This is expected behavior, but
_check_dmesg will flag it as a test failure.
Make it so that we can add simple regexps to the default check_dmesg
filter function, then add the "Internal error" string to filter function
when we invoke an EIO test. This fixes periodic regressions in
generic/019 and generic/475.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'check')
-rwxr-xr-x | check | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -896,6 +896,7 @@ function run_section() echo "run fstests $seqnum at $date_time" > /dev/kmsg # _check_dmesg depends on this log in dmesg touch ${RESULT_DIR}/check_dmesg + rm -f ${RESULT_DIR}/dmesg_filter fi _try_wipe_scratch_devs > /dev/null 2>&1 |