From: Alexander Kanavin Date: Wed, 3 Mar 2021 13:06:41 +0000 (+0100) Subject: oeqa/weston: correctly run wayland-info when systemd is in use X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~8519 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea7dfd857ce3779745dccda0cbfd93b5e5de1a36;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa/weston: correctly run wayland-info when systemd is in use Under systemd weston's socket is in /run, not in /run/user/0. Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py index a1c71832133..b3a7c2776d7 100644 --- a/meta/lib/oeqa/runtime/cases/weston.py +++ b/meta/lib/oeqa/runtime/cases/weston.py @@ -53,7 +53,11 @@ class WestonTest(OERuntimeTestCase): @OEHasPackage(['wayland-utils']) def test_wayland_info(self): - status, output = self.target.run(self.get_weston_command('wayland-info')) + if 'systemd' in self.tc.td['VIRTUAL-RUNTIME_init_manager']: + command = 'XDG_RUNTIME_DIR=/run wayland-info' + else: + command = self.get_weston_command('wayland-info') + status, output = self.target.run(command) self.assertEqual(status, 0, msg='wayland-info error: %s' % output) @OEHasPackage(['weston'])