aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-03-07 19:49:46 +0000
committerArmin Kuster <akuster808@gmail.com>2021-03-09 08:52:21 -0800
commitfffd85ac87079fedc9fae2c7e211461cd98855ba (patch)
tree96da5ca6807b48ac5cf51dbb00e22e79b25bc8ef /recipes-security
parent77b17e6865de0d963911bb5340fd53a403ad122f (diff)
downloadmeta-security-fffd85ac87079fedc9fae2c7e211461cd98855ba.tar.gz
meta-security-fffd85ac87079fedc9fae2c7e211461cd98855ba.tar.bz2
meta-security-fffd85ac87079fedc9fae2c7e211461cd98855ba.zip
python3-fail2ban: fix building with ptest enabled
Use new structure for testing. Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security')
-rw-r--r--recipes-security/fail2ban/files/run-ptest2
-rw-r--r--recipes-security/fail2ban/python3-fail2ban_0.11.2.bb3
2 files changed, 3 insertions, 2 deletions
diff --git a/recipes-security/fail2ban/files/run-ptest b/recipes-security/fail2ban/files/run-ptest
index 9f6aebe..64d07d5 100644
--- a/recipes-security/fail2ban/files/run-ptest
+++ b/recipes-security/fail2ban/files/run-ptest
@@ -1,3 +1,3 @@
#!/bin/sh
-##PYTHON## fail2ban-testcases
+##PYTHON## bin/fail2ban-testcases
diff --git a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
index 6767d80..b480c76 100644
--- a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
+++ b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
@@ -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"