blob: 2124813e3c23c928a9d074b5d77bf6439aa94429 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001from oeqa.runtime.case import OERuntimeTestCase
2from oeqa.core.decorator.depends import OETestDepends
3from oeqa.core.decorator.oeid import OETestID
4from oeqa.core.decorator.data import skipIfNotFeature
5
6class XorgTest(OERuntimeTestCase):
7
8 @OETestID(1151)
9 @skipIfNotFeature('x11-base',
10 'Test requires x11 to be in IMAGE_FEATURES')
11 @OETestDepends(['ssh.SSHTest.test_ssh'])
12 def test_xorg_running(self):
13 cmd ='%s | grep -v xinit | grep [X]org' % self.tc.target_cmds['ps']
14 status, output = self.target.run(cmd)
15 msg = ('Xorg does not appear to be running %s' %
16 self.target.run(self.tc.target_cmds['ps'])[1])
17 self.assertEqual(status, 0, msg=msg)