aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/dmesg.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime/dmesg.py')
-rw-r--r--meta/lib/oeqa/runtime/dmesg.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/dmesg.py b/meta/lib/oeqa/runtime/dmesg.py
new file mode 100644
index 0000000000..b0e2175bec
--- /dev/null
+++ b/meta/lib/oeqa/runtime/dmesg.py
@@ -0,0 +1,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 -i error')
+ self.assertEqual(status, 1, msg = "Error messages in dmesg log: %s" % output)