From 20c48fd99b1458db6ab61d4ec46aed2a824b257f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 19 Feb 2016 18:43:45 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_ap_wps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 37e38a0a4..5e3188f68 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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"):