From 9b3e2ad3a7bd8a4d1aeed97c3c6a216dcd741dc8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 11 Mar 2014 15:03:38 +0200 Subject: [PATCH] tests: Fix reporting of skipped cipher suite tests 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 --- tests/hwsim/test_ap_ciphers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/hwsim/test_ap_ciphers.py b/tests/hwsim/test_ap_ciphers.py index 9dbcc899d..a3a06eb1f 100644 --- a/tests/hwsim/test_ap_ciphers.py +++ b/tests/hwsim/test_ap_ciphers.py @@ -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"""