mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-24 16:28:23 -05:00
tests: Skip dpp_enterprise_tcp tests without OpenSSL
Skip these tests if OpenSSL wasn't loaded, instead of crashing. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
348447c486
commit
eac2b65635
@ -5967,6 +5967,9 @@ def test_dpp_enterprise_reject(dev, apdev, params):
|
|||||||
|
|
||||||
def test_dpp_enterprise_tcp(dev, apdev, params):
|
def test_dpp_enterprise_tcp(dev, apdev, params):
|
||||||
"""DPP over TCP for enterprise provisioning"""
|
"""DPP over TCP for enterprise provisioning"""
|
||||||
|
if not openssl_imported:
|
||||||
|
raise HwsimSkip("OpenSSL python method not available")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
run_dpp_enterprise_tcp(dev, apdev, params)
|
run_dpp_enterprise_tcp(dev, apdev, params)
|
||||||
finally:
|
finally:
|
||||||
@ -6054,6 +6057,9 @@ def run_dpp_enterprise_tcp_end(params, dev, wt):
|
|||||||
|
|
||||||
def test_dpp_enterprise_tcp2(dev, apdev, params):
|
def test_dpp_enterprise_tcp2(dev, apdev, params):
|
||||||
"""DPP over TCP for enterprise provisioning (Controller initiating)"""
|
"""DPP over TCP for enterprise provisioning (Controller initiating)"""
|
||||||
|
if not openssl_imported:
|
||||||
|
raise HwsimSkip("OpenSSL python method not available")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
run_dpp_enterprise_tcp2(dev, apdev, params)
|
run_dpp_enterprise_tcp2(dev, apdev, params)
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user