summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>2020-04-21 22:14:50 +0800
committerKhem Raj <raj.khem@gmail.com>2020-04-21 07:14:06 -0700
commit376eab2c256352b5a03d796bb6e60df307de41c2 (patch)
tree297199b98a16dd339db7f984d0b4538f80868c5a
parent075cf6ded05b26a94bbe51c205d3d8e34e2573af (diff)
downloadmeta-openembedded-376eab2c256352b5a03d796bb6e60df307de41c2.tar.gz
python3-ordered-set: Enable ptest
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-ordered-set/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-ordered-set_3.1.1.bb14
2 files changed, 16 insertions, 1 deletions
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 0000000000..f7b9d0907c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-ordered-set/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest 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 013a2e7559..bf362daa7c 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"
6SRC_URI[md5sum] = "6e12312c8dc4c90fe840e86e8a352644" 6SRC_URI[md5sum] = "6e12312c8dc4c90fe840e86e8a352644"
7SRC_URI[sha256sum] = "a7bfa858748c73b096e43db14eb23e2bc714a503f990c89fac8fab9b0ee79724" 7SRC_URI[sha256sum] = "a7bfa858748c73b096e43db14eb23e2bc714a503f990c89fac8fab9b0ee79724"
8 8
9inherit pypi setuptools3 9inherit pypi setuptools3 ptest
10 10
11DEPENDS += "python3-pytest-runner-native" 11DEPENDS += "python3-pytest-runner-native"
12
13SRC_URI += " \
14 file://run-ptest \
15"
16
17RDEPENDS_${PN}-ptest += " \
18 ${PYTHON_PN}-pytest \
19"
20
21do_install_ptest() {
22 cp -f ${S}/test.py ${D}${PTEST_PATH}/
23}