[PATCH] tests: Skip dpp_pkex_config dpp_pkex_config2 tests correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When CONFIG_DPP is not defined these tests would fail. Skip them.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@xxxxxxxxx>
---
 tests/hwsim/test_dpp.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py
index e62f21b..b787e47 100644
--- a/tests/hwsim/test_dpp.py
+++ b/tests/hwsim/test_dpp.py
@@ -1250,6 +1250,8 @@ def test_dpp_pkex_bp512(dev, apdev):
 
 def test_dpp_pkex_config(dev, apdev):
     """DPP and PKEX with initiator as the configurator"""
+    check_dpp_capab(dev[1])
+
     cmd = "DPP_CONFIGURATOR_ADD"
     res = dev[1].request(cmd);
     if "FAIL" in res:
@@ -1310,6 +1312,8 @@ def run_dpp_pkex(dev, apdev, curve=None, init_extra="", check_config=False):
 
 def test_dpp_pkex_config2(dev, apdev):
     """DPP and PKEX with responder as the configurator"""
+    check_dpp_capab(dev[0])
+
     cmd = "DPP_CONFIGURATOR_ADD"
     res = dev[0].request(cmd);
     if "FAIL" in res:
-- 
2.7.4


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux