From 13b34972459a58bc8e896fbc049c11dcf69ec5ef Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Jun 2015 11:38:14 +0300 Subject: [PATCH] tests: D-Bus Reconnect command Signed-off-by: Jouni Malinen --- tests/hwsim/test_dbus.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_dbus.py b/tests/hwsim/test_dbus.py index a4a8f330e..bc50a10c8 100644 --- a/tests/hwsim/test_dbus.py +++ b/tests/hwsim/test_dbus.py @@ -1124,6 +1124,9 @@ def test_dbus_connect(dev, apdev): iface.Reattach() elif self.state == 5: self.state = 6 + iface.Disconnect() + elif self.state == 7: + self.state = 8 res = iface.SignalPoll() logger.debug("SignalPoll: " + str(res)) if 'frequency' not in res or res['frequency'] != 2412: @@ -1139,6 +1142,9 @@ def test_dbus_connect(dev, apdev): iface.Reassociate() elif self.state == 6: self.state = 7 + iface.Reconnect() + elif self.state == 8: + self.state = 9 self.loop.quit() def run_connect(self, *args): @@ -1157,7 +1163,7 @@ def test_dbus_connect(dev, apdev): not self.network_removed or \ not self.network_selected: return False - return self.state == 7 + return self.state == 9 with TestDbusConnect(bus) as t: if not t.success():