diff --git a/test/integration/kpatch-test b/test/integration/kpatch-test index 1b73ddf..684a8ce 100755 --- a/test/integration/kpatch-test +++ b/test/integration/kpatch-test @@ -251,6 +251,9 @@ run_combined_test() { done } +echo "clearing printk buffer" +sudo dmesg -C + cd "$SCRIPTDIR" if [[ $QUICK != 1 ]]; then @@ -281,6 +284,8 @@ fi unload_all +dmesg |grep -q "Call Trace" && error "kernel error detected in printk buffer" + if [[ $ERROR -gt 0 ]]; then log "$ERROR errors encountered" echo "see test.log for more information"