tests: Make ap_wpa2_eap_peap_params more robust
One of the steps that expected failure due to PMKID mismatch did not stop connection attempts. This could result in the following test step failing due to the previous profile with peaplabel=1 getting used to derive the MSK incorrectly. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
043a29ecc4
commit
8cfc758827
1 changed files with 5 additions and 2 deletions
|
@ -2029,9 +2029,12 @@ def test_ap_wpa2_eap_peap_params(dev, apdev):
|
|||
ev = dev[0].wait_event(["CTRL-EVENT-EAP-SUCCESS"], timeout=15)
|
||||
if ev is None:
|
||||
raise Exception("No EAP success seen")
|
||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=1)
|
||||
if ev is not None:
|
||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED",
|
||||
"CTRL-EVENT-DISCONNECTED"], timeout=1)
|
||||
if ev and "CTRL-EVENT-CONNECTED" in ev:
|
||||
raise Exception("Unexpected connection")
|
||||
dev[0].request("REMOVE_NETWORK all")
|
||||
dev[0].request("ABORT_SCAN")
|
||||
|
||||
tests = [ ("peap-ver0", ""),
|
||||
("peap-ver1", ""),
|
||||
|
|
Loading…
Reference in a new issue