poky/scripts/qemuimage-tests/tools/dmesg.sh
Richard Purdie d5267afa63 qemuimage-tests/dmesg: Add exception for error message on qemuarm with 3.8 kernel
With 3.8 kernels we get a harmless error message during kernel boot.
For now we can ignore. This allows the tests to pass and ensures we
can merge the 3.8 kernel.

(From OE-Core rev: da1e094c407353af2ab230c4867c9d8fd68e3161)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-02 22:45:27 +00:00

29 lines
632 B
Bash

#!/bin/bash
# Dmesg test script running in QEMU
#
# Author: Jiajun Xu <jiajun.xu@intel.com>
#
# This file is licensed under the GNU General Public License,
# Version 2.
#
which dmesg
if [ $? -ne 0 ]; then
echo "QEMU: No dmesg command found"
exit 1
fi
# For now, ignore mmci-pl18x errors on qemuarm which appeared
# from the 3.8 kernel and are harmless
dmesg | grep -v mmci-pl18x | grep -iq "error"
if [ $? -eq 0 ]; then
echo "QEMU: There is some error log in dmesg:"
echo "QEMU: ##### Error Log ######"
dmesg | grep -i "error"
echo "QEMU: ##### End ######"
exit 1
else
echo "QEMU: No error log in dmesg"
exit 0
fi