From: Jouni Malinen Date: Sat, 28 Feb 2015 14:57:03 +0000 (+0200) Subject: tests: Make grpform_no_wsc_done more robust X-Git-Tag: hostap_2_4~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd378ed2e46f6716d0c06cb9ef6e9e6cbb4da5b;p=thirdparty%2Fhostap.git tests: Make grpform_no_wsc_done more robust It was possible for this test case to start a new group formation on dev[1] while the first round was still going through the process of processing group termination indication. That could result in the second round failing unexpectedly. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index 7173b27c5..a119c3a5d 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -856,6 +856,7 @@ def test_grpform_no_wsc_done(dev): if ev is None: raise Exception("Group formation timed out on P2P Client") dev[0].remove_group() + dev[1].wait_go_ending_session() if mode != "P2P GO - group formation": raise Exception("Unexpected mode on GO during group formation: " + mode)