mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 02:03:04 +01:00
This helps for the automatic completion of the results in testopia. (From OE-Core rev: 9148e5873a79ea3ef64f00cf9807fae99bf3040a) Signed-off-by: Lucian Musat <george.l.musat@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 lines
583 B
Python
17 lines
583 B
Python
import unittest
|
|
from oeqa.oetest import oeRuntimeTest, skipModule
|
|
from oeqa.utils.decorators import *
|
|
|
|
def setUpModule():
|
|
if not oeRuntimeTest.hasFeature("x11-base"):
|
|
skipModule("target doesn't have x11 in IMAGE_FEATURES")
|
|
|
|
|
|
class XorgTest(oeRuntimeTest):
|
|
|
|
@testcase(1151)
|
|
@skipUnlessPassed('test_ssh')
|
|
def test_xorg_running(self):
|
|
(status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep -v xinit | grep [X]org')
|
|
self.assertEqual(status, 0, msg="Xorg does not appear to be running %s" % self.target.run(oeRuntimeTest.pscmd)[1])
|