M7350/oe-core/meta/lib/oeqa/runtime/dmesg.py
2024-09-09 08:57:42 +00:00

13 lines
467 B
Python

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)