aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/dmesg.py
blob: 48370fbb0cae1fa8e654807ed3dcb99c0989591b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import unittest
from oeqa.oetest import oeRuntimeTest
from oeqa.utils.decorators import *

def setUpModule():
    skipModuleUnless(oeRuntimeTest.tc.target.run('which dmesg')[0] == 0, "No dmesg in image or no connection")

class DmesgTest(oeRuntimeTest):

    @skipUnlessPassed('test_ssh')
    def test_dmesg(self):
        (status, output) = self.target.run('dmesg | grep -v mmci-pl18x | grep -v "error changing net interface name" | grep -i error')
        self.assertEqual(status, 1, msg = "Error messages in dmesg log: %s" % output)