mirror of https://github.com/dynup/kpatch
test: detect kernel oopses and warnings
This commit is contained in:
parent
152bfee051
commit
f85c1c6f43
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue