clear WARN_ONCE state before each test to allow a potential problem to be reported for each test Signed-off-by: Lukas Czerner <lczerner@xxxxxxxxxx> --- check | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/check b/check index 2e148e57..6ba64d5d 100755 --- a/check +++ b/check @@ -756,6 +756,11 @@ for section in $HOST_OPTIONS_SECTIONS; do 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 > /sys/kernel/debug/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 -- 2.21.3