summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-02-17 19:28:38 -0800
committerKhem Raj <raj.khem@gmail.com>2020-02-17 22:27:14 -0800
commitb89254a8bbc518b35289a49f16faf8d38921e221 (patch)
tree0373dc8c79975be0fbbfe3c2f3d140c771bc11c0
parent71c233683d0b32d19108f3026b23a030446f05a9 (diff)
downloadmeta-openembedded-b89254a8bbc518b35289a49f16faf8d38921e221.tar.gz
rsyslog: Use python3 in ptests
Adjusts rdeps accordingly Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb
index 29bba2d9a7..f82caf7b5c 100644
--- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb
@@ -77,6 +77,12 @@ PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi,"
77PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," 77PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,,"
78PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," 78PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind,"
79 79
80do_configure_prepend() {
81 sed -i -e 's|python |python3 |g' ${S}/tests/*.sh
82 sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/*.py
83 sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/testsuites/*.py
84}
85
80TESTDIR = "tests" 86TESTDIR = "tests"
81do_compile_ptest() { 87do_compile_ptest() {
82 echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile 88 echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile
@@ -186,6 +192,6 @@ VALGRIND_riscv64 = ""
186 192
187RDEPENDS_${PN}-ptest += "\ 193RDEPENDS_${PN}-ptest += "\
188 make diffutils gzip bash gawk coreutils procps \ 194 make diffutils gzip bash gawk coreutils procps \
189 libgcc python-core python-io \ 195 libgcc python3-core python3-io \
190 " 196 "
191RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}" 197RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}"