Skip to contentSkip to conversation

python3-py-cpuinfo: fix ptests

PATCH New Gyorgy Sarvari 1 participant 1 message Oct 23, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-py-cpuinfo: fix ptests

The tests require the library to be present in the folder of test execution, otherwise many of them fail.

---
 meta-python/recipes-devtools/python/python3-py-cpuinfo_8.0.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-py-cpuinfo_8.0.0.bb +1 -0
index 6de2f17459..1cb33edf30 100644
@@ -16,6 +16,7 @@ SRC_URI += "file://run-ptest \
 do_install_ptest() {
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    cp -rf ${D}${PYTHON_SITEPACKAGES_DIR}/cpuinfo ${D}${PTEST_PATH}/
 }
 
 RDEPENDS:${PN}-ptest += "\