Beispiel #1
0
 def _setupPrivateBus(self):
     self._bus = dbustools.get_private_session_bus()
     self._bus_address = dbustools.get_private_bus_address()
     self._dbusobject = self._bus.get_object("org.freedesktop.DBus",
                                             "/org/freedesktop/DBus")
     self._dbusiface = dbus.Interface(self._dbusobject,
                                      "org.freedesktop.DBus")
     self._dbusiface.connect_to_signal("NameOwnerChanged",
                                       self._dbusNameOwnerChangedSignal)
Beispiel #2
0
 def __init__(self, singlerun=False, storage=None, *args, **kwargs):
     dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
     info("starting")
     self._ml = gobject.MainLoop()
     self._bus = dbustools.get_private_session_bus()
     self._busname = dbus.service.BusName("net.gstreamer.TesterClient", self._bus)
     # dbus.service.Object.__init__(self, dbustools.get_private_session_bus(), "/here")
     dbus.service.Object.__init__(self, self._bus, "/here")
     self._testruns = []
     self._storage = None
     self._clientid = None
     if storage:
         self.setStorage(storage)
     # _current is the current TestRun being executed
     self._current = None
     # _running is True if the mainloop is running
     self._running = False
     # If _singlerun == True, the client will quit after
     # all testruns are done
     self._singlerun = singlerun