markupsafe's ptest is failing when running meta-python-ptest-image. This is
because python3-markupsafe is in oe-core, but the ptests are disabled and so
do_install_ptest doesn't actually install them when using the meta-python
bbappend for the recipe. This patch adds do_install_ptest and the ptest
RDEPENDS to the meta-python version of the recipe so that this works.

Signed-off-by: Trevor Gamblin <[email protected]>
---
 .../python/python3-markupsafe_1.%.bbappend             | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/meta-python/recipes-devtools/python/python3-markupsafe_1.%.bbappend 
b/meta-python/recipes-devtools/python/python3-markupsafe_1.%.bbappend
index 91814e6cd..abfda6065 100644
--- a/meta-python/recipes-devtools/python/python3-markupsafe_1.%.bbappend
+++ b/meta-python/recipes-devtools/python/python3-markupsafe_1.%.bbappend
@@ -1,2 +1,12 @@
 # Main recipe was moved to oe-core, but with ptest disabled
 inherit ${@bb.utils.filter('DISTRO_FEATURES', 'ptest', d)}
+
+RDEPENDS_${PN}-ptest += " \
+    ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -f ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#88095): 
https://lists.openembedded.org/g/openembedded-devel/message/88095
Mute This Topic: https://lists.openembedded.org/mt/78475778/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to