Signed-off-by: Zheng Ruoqin <[email protected]>
---
 .../python/python3-ordered-set/run-ptest           |  3 +++
 .../python/python3-ordered-set_3.1.1.bb            | 14 +++++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 
meta-python/recipes-devtools/python/python3-ordered-set/run-ptest

diff --git a/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest 
b/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest
new file mode 100644
index 000000000..f7b9d0907
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest test.py
diff --git a/meta-python/recipes-devtools/python/python3-ordered-set_3.1.1.bb 
b/meta-python/recipes-devtools/python/python3-ordered-set_3.1.1.bb
index 013a2e755..d782e0109 100644
--- a/meta-python/recipes-devtools/python/python3-ordered-set_3.1.1.bb
+++ b/meta-python/recipes-devtools/python/python3-ordered-set_3.1.1.bb
@@ -6,6 +6,18 @@ LIC_FILES_CHKSUM = 
"file://MIT-LICENSE;md5=2b36be0d99854aa2ae292a800a7c1d4e"
 SRC_URI[md5sum] = "6e12312c8dc4c90fe840e86e8a352644"
 SRC_URI[sha256sum] = 
"a7bfa858748c73b096e43db14eb23e2bc714a503f990c89fac8fab9b0ee79724"
 
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
 
 DEPENDS += "python3-pytest-runner-native"
+
+SRC_URI += " \
+       file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+       ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+       cp -f ${S}/test.py ${D}${PTEST_PATH}/
+}
-- 
2.20.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84017): 
https://lists.openembedded.org/g/openembedded-devel/message/84017
Mute This Topic: https://lists.openembedded.org/mt/73166794/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to