tests: Allow PIN generation failure during OOM in ap_wps_random_ap_pin
This is needed to avoid reporting failures after a change to remove the fallback path in PIN generation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8c676b5056
commit
20c48fd99b
1 changed files with 1 additions and 2 deletions
|
@ -675,8 +675,7 @@ def test_ap_wps_random_ap_pin(dev, apdev):
|
||||||
check_wps_reg_failure(dev[1], apdev[0], appin)
|
check_wps_reg_failure(dev[1], apdev[0], appin)
|
||||||
|
|
||||||
with fail_test(hapd, 1, "os_get_random;wps_generate_pin"):
|
with fail_test(hapd, 1, "os_get_random;wps_generate_pin"):
|
||||||
if "FAIL" in hapd.request("WPS_AP_PIN random 1"):
|
hapd.request("WPS_AP_PIN random 1")
|
||||||
raise Exception("Failed to generate PIN during OOM")
|
|
||||||
hapd.request("WPS_AP_PIN disable")
|
hapd.request("WPS_AP_PIN disable")
|
||||||
|
|
||||||
with alloc_fail(hapd, 1, "upnp_wps_set_ap_pin"):
|
with alloc_fail(hapd, 1, "upnp_wps_set_ap_pin"):
|
||||||
|
|
Loading…
Reference in a new issue