blob: 82521c69ac236d21296fefd6fa42ff89d1ce4d81 [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
Brad Bishop977dc1a2019-02-06 16:01:43 -05005from oeqa.runtime.decorator.package import OEHasPackage
Brad Bishop6e60e8b2018-02-01 10:27:11 -05006
7class XorgTest(OERuntimeTestCase):
8
9 @OETestID(1151)
10 @skipIfNotFeature('x11-base',
11 'Test requires x11 to be in IMAGE_FEATURES')
12 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop977dc1a2019-02-06 16:01:43 -050013 @OEHasPackage(['xserver-nodm-init'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014 def test_xorg_running(self):
15 cmd ='%s | grep -v xinit | grep [X]org' % self.tc.target_cmds['ps']
16 status, output = self.target.run(cmd)
17 msg = ('Xorg does not appear to be running %s' %
18 self.target.run(self.tc.target_cmds['ps'])[1])
19 self.assertEqual(status, 0, msg=msg)