mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user