mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

These IDs refer to testopia which we're no longer using. We would now use the test names to definitively reference tests and the IDs can be dropped, along with their supporting code. (From OE-Core rev: 8e2d0575e4e7036b5f60e632f377a8ab2b96ead8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
754 B
Python
18 lines
754 B
Python
from oeqa.runtime.case import OERuntimeTestCase
|
|
from oeqa.core.decorator.depends import OETestDepends
|
|
from oeqa.core.decorator.data import skipIfNotFeature
|
|
from oeqa.runtime.decorator.package import OEHasPackage
|
|
|
|
class XorgTest(OERuntimeTestCase):
|
|
|
|
@skipIfNotFeature('x11-base',
|
|
'Test requires x11 to be in IMAGE_FEATURES')
|
|
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
|
@OEHasPackage(['xserver-nodm-init'])
|
|
def test_xorg_running(self):
|
|
cmd ='%s | grep -v xinit | grep [X]org' % self.tc.target_cmds['ps']
|
|
status, output = self.target.run(cmd)
|
|
msg = ('Xorg does not appear to be running %s' %
|
|
self.target.run(self.tc.target_cmds['ps'])[1])
|
|
self.assertEqual(status, 0, msg=msg)
|