diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-03-07 19:49:46 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-03-09 08:52:21 -0800 |
commit | fffd85ac87079fedc9fae2c7e211461cd98855ba (patch) | |
tree | 96da5ca6807b48ac5cf51dbb00e22e79b25bc8ef /recipes-security | |
parent | 77b17e6865de0d963911bb5340fd53a403ad122f (diff) | |
download | meta-security-fffd85ac87079fedc9fae2c7e211461cd98855ba.tar.gz |
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-ptest | 2 | ||||
-rw-r--r-- | recipes-security/fail2ban/python3-fail2ban_0.11.2.bb | 3 |
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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | ##PYTHON## fail2ban-testcases | 3 | ##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 () { | |||
35 | 35 | ||
36 | do_install_ptest_append () { | 36 | do_install_ptest_append () { |
37 | install -d ${D}${PTEST_PATH} | 37 | install -d ${D}${PTEST_PATH} |
38 | install -d ${D}${PTEST_PATH}/bin | ||
38 | sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest | 39 | sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest |
39 | install -D ${S}/fail2ban-testcases-all-python3 ${D}${PTEST_PATH} | 40 | install -D ${S}/bin/* ${D}${PTEST_PATH}/bin |
40 | } | 41 | } |
41 | 42 | ||
42 | FILES_${PN} += "/run" | 43 | FILES_${PN} += "/run" |