mirror of
https://git.yoctoproject.org/poky
synced 2026-06-07 15:09:50 +00:00
oeqa/weston: correctly run wayland-info when systemd is in use
Under systemd weston's socket is in /run, not in /run/user/0. (From OE-Core rev: ea7dfd857ce3779745dccda0cbfd93b5e5de1a36) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d8b2c8cee9
commit
750293518d
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user