From 35d2e24bc784cc60b9feaaaf6e7d04cf5211ee5b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 4 Oct 2015 12:22:02 +0300 Subject: [PATCH] tests: Read monitor events explicitly in wpas_ctrl_interface_add_many This test case ended up hitting control socket output queue limit unnecessarily due to the test script not reading pending event messages. Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 99fde193a..848f390fe 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -1437,6 +1437,7 @@ def _test_wpas_ctrl_interface_add_many(dev, apdev): hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" }) dev[0].connect("open", key_mgmt="NONE", scan_freq="2412") hwsim_utils.test_connectivity(dev[0], hapd) + dev[0].dump_monitor() l = [] for i in range(10): @@ -1444,9 +1445,14 @@ def _test_wpas_ctrl_interface_add_many(dev, apdev): dev[0].interface_add(ifname, create=True) wpas = WpaSupplicant(ifname=ifname) wpas.connect("open", key_mgmt="NONE", scan_freq="2412") + wpas.dump_monitor() l.append(wpas) + dev[0].dump_monitor() for wpas in l: + wpas.dump_monitor() hwsim_utils.test_connectivity(wpas, hapd) + wpas.dump_monitor() + dev[0].dump_monitor() def test_wpas_ctrl_interface_add2(dev, apdev): """wpa_supplicant INTERFACE_ADD/REMOVE with vif without creation/removal"""