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:
Artem Savkov 2019-01-14 12:20:43 +01:00
parent a3afc831e2
commit 7c774350fc

View File

@ -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"