tests: Run a localed mock implementation on tests

As per this we can just warn if its proxy initialization fails.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1233>
This commit is contained in:
Marco Trevisan (Treviño)
2021-08-26 15:07:47 +02:00
committed by Jonas Ådahl
parent b3c5ca12a5
commit a4223007e2
3 changed files with 55 additions and 2 deletions

View File

@ -39,6 +39,7 @@ class MutterDBusTestCase(DBusTestCase):
'meta-mocks-manager', {'templates-dir': get_templates_dir()})
klass.start_from_template('logind')
klass.start_from_local_template('localed')
klass.system_bus_con = klass.get_dbus(system_bus=True)
klass.session_bus_con = klass.get_dbus(system_bus=False)