Skip to contentSkip to conversation

python3-fail2ban: fix building with ptest enabled

PATCH New akuster 1 participant 1 message Mar 9, 2021

lore
Share & tools
lore

akuster

author
#0 lore raw

PATCH 1/1 python3-fail2ban: fix building with ptest enabled

Use new structure for testing.

---
 recipes-security/fail2ban/files/run-ptest            | 2 +-
 recipes-security/fail2ban/python3-fail2ban_0.11.2.bb | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
recipes-security/fail2ban/files/run-ptest +1 -1
index 9f6aebe..64d07d5 100644
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-##PYTHON## fail2ban-testcases
+##PYTHON## bin/fail2ban-testcases
recipes-security/fail2ban/python3-fail2ban_0.11.2.bb +2 -1
index 6767d80..b480c76 100644
@@ -35,8 +35,9 @@ do_install_append () {
 
 do_install_ptest_append () {
     install -d ${D}${PTEST_PATH}
+    install -d ${D}${PTEST_PATH}/bin
     sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest
-    install -D ${S}/fail2ban-testcases-all-python3 ${D}${PTEST_PATH}
+    install -D ${S}/bin/* ${D}${PTEST_PATH}/bin
 }
 
 FILES_${PN} += "/run"
Signature · 1 line
2.17.1