mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 15:32:12 +02:00
The new oeqa core framework will modify the structure of the runtime folder the new runtime folder will have python code inside to support runtime test cases. (From OE-Core rev: 637b712096e9d230e15b1a432a561e4118db34c8) Signed-off-by: Aníbal Limón <anibal.limon@linux.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])
|