1
0
Fork 0

dbusmock/mocks-manager: Don't create a pipe for started templates

Just shovel the data through our own stdin/stdout, which will end up at
the right place (e.g. /dev/null).

This should hopefully solve `mutter-dist` failing due to a D-Bus method
call timeout in CI.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3757>
This commit is contained in:
Jonas Ådahl 2024-05-17 22:39:47 +02:00 committed by Marge Bot
parent 6ab36f7297
commit e2e687c9db

View file

@ -41,9 +41,7 @@ def StartFromTemplate(self, template):
if template in self.mocks.keys():
raise KeyError('Template {} already started'.format(template))
mock_server, mock_obj = self.dbus_mock.spawn_server_template(template, {},
stdout=subprocess.PIPE)
set_nonblock(mock_server.stdout)
mock_server, mock_obj = self.dbus_mock.spawn_server_template(template, {})
self.mocks[template] = (mock_server, mock_obj)