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:
Jouni Malinen 2016-02-19 18:43:45 +02:00 committed by Jouni Malinen
parent 8c676b5056
commit 20c48fd99b

View file

@ -675,8 +675,7 @@ def test_ap_wps_random_ap_pin(dev, apdev):
check_wps_reg_failure(dev[1], apdev[0], appin)
with fail_test(hapd, 1, "os_get_random;wps_generate_pin"):
if "FAIL" in hapd.request("WPS_AP_PIN random 1"):
raise Exception("Failed to generate PIN during OOM")
hapd.request("WPS_AP_PIN random 1")
hapd.request("WPS_AP_PIN disable")
with alloc_fail(hapd, 1, "upnp_wps_set_ap_pin"):