Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | import unittest |
| 2 | from oeqa.oetest import oeRuntimeTest, skipModule |
| 3 | from oeqa.utils.decorators import * |
| 4 | |
| 5 | def setUpModule(): |
| 6 | if not oeRuntimeTest.hasFeature("x11-base"): |
| 7 | skipModule("target doesn't have x11 in IMAGE_FEATURES") |
| 8 | |
| 9 | |
| 10 | class XorgTest(oeRuntimeTest): |
| 11 | |
| 12 | @testcase(1151) |
| 13 | @skipUnlessPassed('test_ssh') |
| 14 | def test_xorg_running(self): |
| 15 | (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep -v xinit | grep [X]org') |
| 16 | self.assertEqual(status, 0, msg="Xorg does not appear to be running %s" % self.target.run(oeRuntimeTest.pscmd)[1]) |