]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
check: clear WARN_ONCE state before each test
authorLukas Czerner <lczerner@redhat.com>
Wed, 15 Jul 2020 11:42:19 +0000 (13:42 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 19 Jul 2020 17:22:08 +0000 (01:22 +0800)
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>
check

diff --git a/check b/check
index 2676b61978e1a486e34b2b93358ebaccff382819..5ffa8777110393b96bb57960acb461d2f4355bf8 100755 (executable)
--- 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