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


class DmesgTest(oeRuntimeTest):

    @testcase(215)
    @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 -iv "dma timeout" | grep -v usbhid | grep -i error')
        self.assertEqual(status, 1, msg = "Error messages in dmesg log: %s" % output)