[oe-commits] [meta-openembedded] 03/12: python3-webcolors: Enable ptest

git at git.openembedded.org git at git.openembedded.org
Fri Mar 20 14:46:39 UTC 2020


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit e36ff205b27e3043c19c17f70156d11f20311a04
Author: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
AuthorDate: Fri Mar 20 10:20:10 2020 +0800

    python3-webcolors: Enable ptest
    
    Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-python/recipes-devtools/python/python-webcolors.inc   | 14 ++++++++++++++
 .../recipes-devtools/python/python3-webcolors/run-ptest    |  2 ++
 2 files changed, 16 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-webcolors.inc b/meta-python/recipes-devtools/python/python-webcolors.inc
index ef254e3..ad012c9 100644
--- a/meta-python/recipes-devtools/python/python-webcolors.inc
+++ b/meta-python/recipes-devtools/python/python-webcolors.inc
@@ -10,3 +10,17 @@ RDEPENDS_${PN}_class-target = "\
 "
 
 BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI += " \
+	file://run-ptest \
+"
+inherit ptest
+
+RDEPENDS_${PN}-ptest += " \
+	${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+	install -d ${D}${PTEST_PATH}/tests
+	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
diff --git a/meta-python/recipes-devtools/python/python3-webcolors/run-ptest b/meta-python/recipes-devtools/python/python3-webcolors/run-ptest
new file mode 100644
index 0000000..40c2847
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-webcolors/run-ptest
@@ -0,0 +1,2 @@
+#!/bin/sh
+pytest

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list