From: Johannes Berg Date: Mon, 25 Sep 2023 07:20:43 +0000 (+0200) Subject: tests: persistent_go_client_list: Ignore client order X-Git-Tag: hostap_2_11~937 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=376bead9635a3d5fc9b06dca39c7f2736ed9af4e;p=thirdparty%2Fhostap.git tests: persistent_go_client_list: Ignore client order Clients could connect in a different order depending on timing differences, don't check for the order here. Signed-off-by: Johannes Berg --- diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py index c1610d2d4..d81c84572 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()