]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix reporting of skipped cipher suite tests
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 11 Mar 2014 13:03:38 +0000 (15:03 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 11 Mar 2014 13:03:38 +0000 (15:03 +0200)
The return value was lost and GCMP, CCMP-256, and GCMP-256 test cases
were reporting PASS instead of SKIP.

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

index 9dbcc899d75ee57c8b59916f1c6ce3a902aa06dc..a3a06eb1f61877735f3b141b31e4a945cb16ea69 100644 (file)
@@ -27,23 +27,23 @@ def check_cipher(dev, ap, cipher):
 
 def test_ap_cipher_tkip(dev, apdev):
     """WPA2-PSK/TKIP connection"""
-    check_cipher(dev[0], apdev[0], "TKIP")
+    return check_cipher(dev[0], apdev[0], "TKIP")
 
 def test_ap_cipher_ccmp(dev, apdev):
     """WPA2-PSK/CCMP connection"""
-    check_cipher(dev[0], apdev[0], "CCMP")
+    return check_cipher(dev[0], apdev[0], "CCMP")
 
 def test_ap_cipher_gcmp(dev, apdev):
     """WPA2-PSK/GCMP connection"""
-    check_cipher(dev[0], apdev[0], "GCMP")
+    return check_cipher(dev[0], apdev[0], "GCMP")
 
 def test_ap_cipher_ccmp_256(dev, apdev):
     """WPA2-PSK/CCMP-256 connection"""
-    check_cipher(dev[0], apdev[0], "CCMP-256")
+    return check_cipher(dev[0], apdev[0], "CCMP-256")
 
 def test_ap_cipher_gcmp_256(dev, apdev):
     """WPA2-PSK/GCMP-256 connection"""
-    check_cipher(dev[0], apdev[0], "GCMP-256")
+    return check_cipher(dev[0], apdev[0], "GCMP-256")
 
 def test_ap_cipher_mixed_wpa_wpa2(dev, apdev):
     """WPA2-PSK/CCMP/ and WPA-PSK/TKIP mixed configuration"""