jinja2's ptest is failing when running meta-python-ptest-image. This is happening for two reasons:
1) python3-jinja2 is in oe-core, but the ptests are disabled. 2) python3-toml is required for the ptest; Because of #1, do_install_ptest doesn't actually run and so no tests are installed for ptest-runner to use. This patch adds do_install_ptest to the bbappend file for jinja2, and also adds python3-toml to the ptest RDEPENDS so that it will install the tests and run correctly. Signed-off-by: Trevor Gamblin <[email protected]> --- .../python/python3-jinja2_2.%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-jinja2_2.%.bbappend b/meta-python/recipes-devtools/python/python3-jinja2_2.%.bbappend index 91814e6cd..9fe358427 100644 --- a/meta-python/recipes-devtools/python/python3-jinja2_2.%.bbappend +++ b/meta-python/recipes-devtools/python/python3-jinja2_2.%.bbappend @@ -1,2 +1,13 @@ # Main recipe was moved to oe-core, but with ptest disabled inherit ${@bb.utils.filter('DISTRO_FEATURES', 'ptest', d)} + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +RDEPENDS_${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-toml \ + ${PYTHON_PN}-unixadmin \ +" -- 2.26.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#88083): https://lists.openembedded.org/g/openembedded-devel/message/88083 Mute This Topic: https://lists.openembedded.org/mt/78464074/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
