[PATCH 03/17] tests: persistent_go_client_list: ignore client order
Johannes Berg
johannes at sipsolutions.net
Mon Sep 25 00:20:43 PDT 2023
From: Johannes Berg <johannes.berg at intel.com>
Clients could connect in a different order depending on
timing differences, don't check for the order here.
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
tests/hwsim/test_p2p_persistent.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py
index c1610d2d444d..d81c845722b7 100644
--- a/tests/hwsim/test_p2p_persistent.py
+++ b/tests/hwsim/test_p2p_persistent.py
@@ -337,7 +337,7 @@ def test_persistent_go_client_list(dev):
raise Exception("Timeout on group restart (on client)")
dev[1].group_form_result(ev)
clients = dev[0].global_request("GET_NETWORK " + id + " p2p_client_list").rstrip()
- if clients != addr1 + " " + addr2:
+ if set(clients.split()) != set((addr1, addr2)):
raise Exception("Unexpected p2p_client_list entry(4): " + clients)
dev[2].remove_group()
--
2.41.0
More information about the Hostap
mailing list