Only run peerJoined() steps once to avoid trying to use GetAll() on an
already removed group and double-removal of a group. This did not make
the test case fail, but the exception is printed out in pretty confusing
way to stdout, so better get rid of it.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
self.go = None
self.group1 = None
self.group2 = None
+ self.groups_removed = False
def __enter__(self):
gobject.timeout_add(1, self.run_test)
def peerJoined(self, peer):
logger.debug("peerJoined: " + peer)
+ if self.groups_removed:
+ return
self.check_results()
dev2 = WpaSupplicant('wlan2', '/tmp/wpas-wlan2')
group_p2p = dbus.Interface(self.g1_if_obj,
WPAS_DBUS_IFACE_P2PDEVICE)
group_p2p.Disconnect()
+ self.groups_removed = True
def check_results(self):
logger.info("Check results with two concurrent groups in operation")