aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2017-07-05 18:25:06 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-07 20:37:13 (GMT)
commit4874f5bad324341e29c71d28f805aa46b4b2c89a (patch)
treea6bf196694d628080343a3dd6f6851cdb0ae3c89 /tests
parentcc6088463a26d757dd44d3364e0d2dc06592068b (diff)
downloadhostap-4874f5bad324341e29c71d28f805aa46b4b2c89a.zip
hostap-4874f5bad324341e29c71d28f805aa46b4b2c89a.tar.gz
hostap-4874f5bad324341e29c71d28f805aa46b4b2c89a.tar.bz2
tests: Skip dpp_pkex_config dpp_pkex_config2 tests correctly
When CONFIG_DPP is not defined these tests would fail. Skip them. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_dpp.py4
1 files changed, 4 insertions, 0 deletions
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: