aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-06-16 23:05:10 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-16 23:05:10 (GMT)
commit7309e804cf0b35b95be3f8cd13c2ae66691eb572 (patch)
tree59f1967ab53cdceaa554a95cbb16f778c75387be /tests
parentd1296da64343085017015cccc0562dd702bb10c7 (diff)
downloadhostap-7309e804cf0b35b95be3f8cd13c2ae66691eb572.zip
hostap-7309e804cf0b35b95be3f8cd13c2ae66691eb572.tar.gz
hostap-7309e804cf0b35b95be3f8cd13c2ae66691eb572.tar.bz2
tests: Make mesh_missing_mic more robust
Check for MESH-PEER-CONNECTED from dev[1] before reporting MGMT-RX timeout errors from dev[0]. This avoids false failures in case the short 0.01 s timeout at the end of the loop was not long enough to catch the message. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_mesh.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 69762ab..582ad73 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -1422,6 +1422,9 @@ def test_mesh_missing_mic(dev, apdev):
raise Exception("Did not see Action frames")
rx_msg = dev[0].mgmt_rx()
if rx_msg is None:
+ ev = dev[1].wait_event(["MESH-PEER-CONNECTED"], timeout=0.01)
+ if ev:
+ break
raise Exception("MGMT-RX timeout")
if rx_msg['subtype'] == 13:
payload = rx_msg['payload']