test: detect kernel oopses and warnings

This commit is contained in:
Josh Poimboeuf 2014-06-27 13:19:08 -05:00
parent 152bfee051
commit f85c1c6f43
1 changed files with 5 additions and 0 deletions

View File

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