* test added to the fast list

Signed-off-by: Jan Vermaete <jan.verma...@gmail.com>
---
 .../conf/include/ptest-packagelists-meta-python.inc   |  1 +
 .../recipes-devtools/python/python3-flask/run-ptest   |  3 +++
 .../recipes-devtools/python/python3-flask_3.0.2.bb    | 11 ++++++++++-
 3 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-flask/run-ptest

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc 
b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index e07aaf3c0..2e701dc15 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -19,6 +19,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-click \
     python3-dominate \
     python3-execnet \
+    python3-flask \
     python3-flexcache \
     python3-flexparser \
     python3-freezegun \
diff --git a/meta-python/recipes-devtools/python/python3-flask/run-ptest 
b/meta-python/recipes-devtools/python/python3-flask/run-ptest
new file mode 100644
index 000000000..8d2017d39
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-flask/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-flask_3.0.2.bb 
b/meta-python/recipes-devtools/python/python3-flask_3.0.2.bb
index 300ca99dd..99524b437 100644
--- a/meta-python/recipes-devtools/python/python3-flask_3.0.2.bb
+++ b/meta-python/recipes-devtools/python/python3-flask_3.0.2.bb
@@ -8,10 +8,14 @@ LIC_FILES_CHKSUM = 
"file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75"
 
 SRC_URI[sha256sum] = 
"822c03f4b799204250a7ee84b1eddc40665395333973dfb9deebfe425fefcb7d"
 
+SRC_URI += " \
+        file://run-ptest \
+"
+
 UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/Flask";
 UPSTREAM_CHECK_REGEX = "/Flask/(?P<pver>(\d+[\.\-_]*)+)"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta ptest
 
 CLEANBROKEN = "1"
 
@@ -23,3 +27,8 @@ RDEPENDS:${PN} = " \
     python3-profile \
     python3-werkzeug \
 "
+
+do_install_ptest() {
+        install -d ${D}${PTEST_PATH}/tests
+        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110646): 
https://lists.openembedded.org/g/openembedded-devel/message/110646
Mute This Topic: https://lists.openembedded.org/mt/106395318/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to