Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test

Message ID AGlB.1655124001881764456.MSf8@lists.openembedded.org
State New
Headers show
Series Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test | expand

Commit Message

Süsens, Sebastian June 13, 2022, 12:40 p.m. UTC
Test xwayland support if DISTRO_FEATURE X11 is enabled

Test checked if xserver listening on display

Signed-off-by: ssuesens <sebastian.suesens@baslerweb.com>
---
meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++
1 file changed, 8 insertions(+)

--
2.25.1

Comments

Alexandre Belloni June 13, 2022, 8:40 p.m. UTC | #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

On 13/06/2022 05:40:01-0700, Süsens, Sebastian via lists.openembedded.org wrote:
> Test xwayland support if DISTRO_FEATURE X11 is enabled
> 
> Test checked if xserver listening on display
> 
> Signed-off-by: ssuesens <sebastian.suesens@baslerweb.com>
> ---
> meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++
> 1 file changed, 8 insertions(+)
> 
> diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py
> index b81cc299ef..1fd471e611 100644
> --- a/meta/lib/oeqa/runtime/cases/weston.py
> +++ b/meta/lib/oeqa/runtime/cases/weston.py
> @@ -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

> 
> 
>

Patch

diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py
index b81cc299ef..1fd471e611 100644
--- a/meta/lib/oeqa/runtime/cases/weston.py
+++ b/meta/lib/oeqa/runtime/cases/weston.py
@@ -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)