tests: Increase WPS timeout to 30 seconds
Number of crypto operations seem to take very long time in the valgrind tests (about five seconds for public key generation for M1 and M2 on a virtual server) and this is enough to push the test runs to hit the timeout frequently even when there is no real error. Make this less frequent by increasing WPS test case timeout from 15 to 30 seconds to avoid issues based on the test scripts. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b1ce1ec09b
commit
7e3f110b08
2 changed files with 6 additions and 6 deletions
|
@ -50,7 +50,7 @@ def test_ap_wps_conf(dev, apdev):
|
||||||
hapd.request("WPS_PBC")
|
hapd.request("WPS_PBC")
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("WPS_PBC")
|
dev[0].request("WPS_PBC")
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=30)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
status = dev[0].get_status()
|
status = dev[0].get_status()
|
||||||
|
@ -79,7 +79,7 @@ def test_ap_wps_conf_pin(dev, apdev):
|
||||||
dev[0].request("SET ignore_old_scan_res 1")
|
dev[0].request("SET ignore_old_scan_res 1")
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("WPS_PIN any " + pin)
|
dev[0].request("WPS_PIN any " + pin)
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=30)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
status = dev[0].get_status()
|
status = dev[0].get_status()
|
||||||
|
|
|
@ -53,7 +53,7 @@ def test_nfc_wps_password_token_sta(dev, apdev):
|
||||||
res = dev[0].request("WPS_NFC")
|
res = dev[0].request("WPS_NFC")
|
||||||
if "FAIL" in res:
|
if "FAIL" in res:
|
||||||
raise Exception("Failed to start Enrollee using NFC password token")
|
raise Exception("Failed to start Enrollee using NFC password token")
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=30)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
check_wpa2_connection(dev[0], apdev[0], ssid)
|
check_wpa2_connection(dev[0], apdev[0], ssid)
|
||||||
|
@ -115,7 +115,7 @@ def test_nfc_wps_password_token_sta_init(dev, apdev):
|
||||||
res = dev[0].request("WPS_NFC")
|
res = dev[0].request("WPS_NFC")
|
||||||
if "FAIL" in res:
|
if "FAIL" in res:
|
||||||
raise Exception("Failed to start Enrollee using NFC password token")
|
raise Exception("Failed to start Enrollee using NFC password token")
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=30)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
check_wpa2_connection(dev[0], apdev[0], ssid, mixed=True)
|
check_wpa2_connection(dev[0], apdev[0], ssid, mixed=True)
|
||||||
|
@ -143,7 +143,7 @@ def test_nfc_wps_password_token_ap(dev, apdev):
|
||||||
res = dev[0].request("WPS_REG " + apdev[0]['bssid'] + " nfc-pw " + new_ssid.encode("hex") + " WPA2PSK CCMP " + new_passphrase.encode("hex"))
|
res = dev[0].request("WPS_REG " + apdev[0]['bssid'] + " nfc-pw " + new_ssid.encode("hex") + " WPA2PSK CCMP " + new_passphrase.encode("hex"))
|
||||||
if "FAIL" in res:
|
if "FAIL" in res:
|
||||||
raise Exception("Failed to start Registrar using NFC password token")
|
raise Exception("Failed to start Registrar using NFC password token")
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=30)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
check_wpa2_connection(dev[0], apdev[0], new_ssid, mixed=True)
|
check_wpa2_connection(dev[0], apdev[0], new_ssid, mixed=True)
|
||||||
|
@ -168,7 +168,7 @@ def test_nfc_wps_handover(dev, apdev):
|
||||||
res = dev[0].request("NFC_REPORT_HANDOVER INIT WPS " + req + " " + sel)
|
res = dev[0].request("NFC_REPORT_HANDOVER INIT WPS " + req + " " + sel)
|
||||||
if "FAIL" in res:
|
if "FAIL" in res:
|
||||||
raise Exception("Failed to report NFC connection handover to to wpa_supplicant")
|
raise Exception("Failed to report NFC connection handover to to wpa_supplicant")
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=30)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Association with the AP timed out")
|
raise Exception("Association with the AP timed out")
|
||||||
check_wpa2_connection(dev[0], apdev[0], ssid)
|
check_wpa2_connection(dev[0], apdev[0], ssid)
|
||||||
|
|
Loading…
Reference in a new issue