Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test
Test xwayland support if DISTRO_FEATURE X11 is enabled
Test checked if xserver listening on display
---meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++
1 file changed, 8 insertions(+)
meta/lib/oeqa/runtime/cases/weston.py +0 -0
@@ -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)
--
2.25.1
Hello,
I'm sorry but none of the patches apply correctly and this is proving difficult to fix.
Could you resend using git send-email?
You have more information here:
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
Quoted 31 lines · Sebastian via lists.openembedded.org
Test xwayland support if
DISTRO_FEATUREX11 is enabledTest checked if xserver listening on display
Signed-off-by ssuesens <[email protected]>---
meta/lib/oeqa/runtime/cases/weston.py| 8 ++++++++1 file changed, 8 insertions(+)meta/lib/oeqa/runtime/cases/weston.py +8
-1@@ -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) --2.25.1
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com