self.found = False
self.found2 = False
self.lost = False
+ self.find_stopped = False
def __enter__(self):
gobject.timeout_add(1, self.run_test)
self.add_signal(self.provisionDiscoveryResponseEnterPin,
WPAS_DBUS_IFACE_P2PDEVICE,
"ProvisionDiscoveryResponseEnterPin")
+ self.add_signal(self.findStopped, WPAS_DBUS_IFACE_P2PDEVICE,
+ "FindStopped")
self.loop.run()
return self
logger.debug("provisionDiscoveryResponseEnterPin - peer=%s" % peer_object)
p2p.Flush()
+ def findStopped(self):
+ logger.debug("findStopped")
+ self.find_stopped = True
+
def run_test(self, *args):
logger.debug("run_test")
p2p.Find(dbus.Dictionary({'DiscoveryType': 'social',
return False
def success(self):
- return self.found and self.lost and self.found2
+ return self.found and self.lost and self.found2 and self.find_stopped
with TestDbusP2p(bus) as t:
if not t.success():