]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Allow PIN generation failure during OOM in ap_wps_random_ap_pin
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 19 Feb 2016 16:43:45 +0000 (18:43 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 19 Feb 2016 16:44:39 +0000 (18:44 +0200)
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>
tests/hwsim/test_ap_wps.py

index 37e38a0a4fb87b4d3edefb17e14fba3894854e7d..5e3188f682ba45a918af37ddb24b15314e74b7eb 100644 (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"):