Signed-off-by: Zheng Ruoqin <[email protected]>
---
.../python/python3-precise-runner/run-ptest | 3 +++
.../python/python3-precise-runner_0.3.1.bb | 15 ++++++++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644
meta-python/recipes-devtools/python/python3-precise-runner/run-ptest
diff --git
a/meta-python/recipes-devtools/python/python3-precise-runner/run-ptest
b/meta-python/recipes-devtools/python/python3-precise-runner/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-precise-runner/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
diff --git
a/meta-python/recipes-devtools/python/python3-precise-runner_0.3.1.bb
b/meta-python/recipes-devtools/python/python3-precise-runner_0.3.1.bb
index 98b62d899..6155b7981 100644
--- a/meta-python/recipes-devtools/python/python3-precise-runner_0.3.1.bb
+++ b/meta-python/recipes-devtools/python/python3-precise-runner_0.3.1.bb
@@ -6,4 +6,17 @@ LIC_FILES_CHKSUM =
"file://README.md;md5=2ad29e930f3107d52d2a55728bf62116"
SRC_URI[md5sum] = "a2434be110444192e804f4dada0ccecf"
SRC_URI[sha256sum] =
"1a464209fb4bf0a3f5d5a428310cb2a70487a01a6bc3a960d1dda90af896b80d"
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/test
+ cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
+}
--
2.20.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#83627):
https://lists.openembedded.org/g/openembedded-devel/message/83627
Mute This Topic: https://lists.openembedded.org/mt/72744552/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-