mirror of
https://git.yoctoproject.org/meta-security
synced 2026-04-20 23:40:05 +00:00
python3-fail2ban: fix building with ptest enabled
Use new structure for testing. Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
##PYTHON## fail2ban-testcases
|
||||
##PYTHON## bin/fail2ban-testcases
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user