diff mbox series

[v2,2/2] check: _check_filesystems for errors even if test failed

Message ID 20230421175132.3596583-2-leah.rumancik@gmail.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] check: try to fix the test device if it gets corrupted | expand

Commit Message

Leah Rumancik April 21, 2023, 5:51 p.m. UTC
Previously, we would only run _check_filesystems to ensure that a test
that appeared to pass did not have any filesystem corruption. However,
in _check_filesystems, we also repair any errors found in the filesystem.
Let's do this even if we already know the test failed so that subsequent
tests aren't affected.

Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
---
 check | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/check b/check
index befbf465..c18f02ca 100755
--- a/check
+++ b/check
@@ -972,6 +972,7 @@  function run_section()
 			# Even though we failed, there may be something interesting in
 			# dmesg which can help debugging.
 			_check_dmesg
+			(_adjust_oom_score 250; _check_filesystems)
 			tc_status="fail"
 		else
 			# The test apparently passed, so check for corruption