aboutsummaryrefslogtreecommitdiffstats
path: root/check
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2020-07-15 13:42:19 +0200
committerEryu Guan <guaneryu@gmail.com>2020-07-20 01:22:08 +0800
commitc67ea2347454aebbe8eb6e825e9314d099b683da (patch)
tree19c83b3580e4d58c277232761db07d6871cd0894 /check
parentc5e88064eb807555b7c734e87e8ecc5b5144a1c9 (diff)
downloadxfstests-dev-c67ea2347454aebbe8eb6e825e9314d099b683da.tar.gz
check: clear WARN_ONCE state before each test
clear WARN_ONCE state before each test to allow a potential problem to be reported for each test [Eryu: replace "/sys/kernel/debug" with $DEBUGFS_MNT ] Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'check')
-rwxr-xr-xcheck5
1 files changed, 5 insertions, 0 deletions
diff --git a/check b/check
index 2676b61978..5ffa877711 100755
--- a/check
+++ b/check
@@ -763,6 +763,11 @@ function run_section()
touch ${RESULT_DIR}/check_dmesg
fi
_try_wipe_scratch_devs > /dev/null 2>&1
+
+ # clear the WARN_ONCE state to allow a potential problem
+ # to be reported for each test
+ (echo 1 > $DEBUGFS_MNT/clear_warn_once) > /dev/null 2>&1
+
if [ "$DUMP_OUTPUT" = true ]; then
_run_seq 2>&1 | tee $tmp.out
# Because $? would get tee's return code