]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Properly skip pmksa_cache_ctrl_ext if PMKSA_GET is not supported
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 13 Dec 2016 18:13:42 +0000 (20:13 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Dec 2016 18:13:42 +0000 (20:13 +0200)
Mark the test as skipped instead of failed if wpa_supplicant is built
without PMKSA_GET support.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_pmksa_cache.py

index d1dab32fd79210a542b1465d4e1caf26cb883774..78b0dba4b623c67f54966305a0f05e94118dc28b 100644 (file)
@@ -12,7 +12,7 @@ import time
 import hostapd
 import hwsim_utils
 from wpasupplicant import WpaSupplicant
-from utils import alloc_fail
+from utils import alloc_fail, HwsimSkip
 from test_ap_eap import eap_connect
 
 def test_pmksa_cache_on_roam_back(dev, apdev):
@@ -935,6 +935,8 @@ def test_pmksa_cache_ctrl_ext(dev, apdev):
 
     res1 = dev[0].request("PMKSA_GET %d" % id)
     logger.info("PMKSA_GET: " + res1)
+    if "UNKNOWN COMMAND" in res1:
+        raise HwsimSkip("PMKSA_GET not supported in the build")
     if bssid not in res1:
         raise Exception("PMKSA cache entry missing")