1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

weston.py: added xwayland test

Test xwayland support if DISTRO_FEATURE X11 is enabled

Test checked if xserver listening on display

(From OE-Core rev: c8dea13bd65f1695c79eba26b092d411a1699b19)

Signed-off-by: ssuesens <sebastian.suesens@baslerweb.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
ssuesens
2022-06-14 08:27:05 +02:00
committed by Richard Purdie
parent c4b793fd88
commit b4206958f5
+8
View File
@@ -77,3 +77,11 @@ class WestonTest(OERuntimeTestCase):
self.target.run('kill -9 %s' % w)
__, weston_log = self.target.run('cat %s' % self.weston_log_file)
self.assertTrue(new_wl_processes, msg='Could not get new weston-desktop-shell processes (%s, try_cnt:%s) weston log: %s' % (new_wl_processes, try_cnt, weston_log))
@skipIfNotFeature('x11', 'Test requires x11 to be in DISTRO_FEATURES')
@OEHasPackage(['weston'])
def test_weston_supports_xwayland(self):
cmd ='cat %s | grep "xserver listening on display"' % self.weston_log_file
status, output = self.target.run(cmd)
msg = ('xwayland does not appear to be running')
self.assertEqual(status, 0, msg=msg)