mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 23:02:02 +00:00
integration: save dmesg on detected errors
Dump dmesg to dmesg.log when detecting a call trace. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
a3afc831e2
commit
7c774350fc
@ -320,7 +320,10 @@ fi
|
||||
|
||||
unload_all
|
||||
|
||||
dmesg |grep -q "Call Trace" && error "kernel error detected in printk buffer"
|
||||
if dmesg | grep -q "Call Trace"; then
|
||||
dmesg > dmesg.log
|
||||
error "kernel error detected in printk buffer"
|
||||
fi
|
||||
|
||||
if [[ $ERROR -gt 0 ]]; then
|
||||
log "$ERROR errors encountered"
|
||||
|
Loading…
Reference in New Issue
Block a user