From 9d00efd8296fe1e45daf55115b3e49f46ecd8c6d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 31 Jul 2020 10:09:33 +0300 Subject: [PATCH] tests: Skip sigma_dut_dpp_qr_resp_11 if dpp-ca.py does not exist Signed-off-by: Jouni Malinen --- tests/hwsim/test_sigma_dut.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index de5495199..e53be642a 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -1533,6 +1533,8 @@ def test_sigma_dut_dpp_qr_resp_10(dev, apdev): def test_sigma_dut_dpp_qr_resp_11(dev, apdev, params): """sigma_dut DPP/QR responder (conf index 11)""" + if not os.path.exists("./dpp-ca.py"): + raise HwsimSkip("dpp-ca.py not available") logdir = params['logdir'] with open("auth_serv/ec-ca.pem", "rb") as f: res = f.read()