summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-python/recipes-devtools/python/python3-pyserial/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-pyserial_3.4.bb15
2 files changed, 17 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyserial/run-ptest b/meta-python/recipes-devtools/python/python3-pyserial/run-ptest
new file mode 100644
index 0000000000..5cec711696
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyserial/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest
diff --git a/meta-python/recipes-devtools/python/python3-pyserial_3.4.bb b/meta-python/recipes-devtools/python/python3-pyserial_3.4.bb
index eee8eb2d16..d65c9a88b8 100644
--- a/meta-python/recipes-devtools/python/python3-pyserial_3.4.bb
+++ b/meta-python/recipes-devtools/python/python3-pyserial_3.4.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d476d94926db6e0008a5b3860d1f5c0d"
5SRC_URI[md5sum] = "ed6183b15519a0ae96675e9c3330c69b" 5SRC_URI[md5sum] = "ed6183b15519a0ae96675e9c3330c69b"
6SRC_URI[sha256sum] = "6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627" 6SRC_URI[sha256sum] = "6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627"
7 7
8inherit pypi setuptools3 8inherit pypi setuptools3 ptest
9 9
10do_install_append() { 10do_install_append() {
11 rm -f ${D}${bindir}/miniterm.py 11 rm -f ${D}${bindir}/miniterm.py
@@ -47,3 +47,16 @@ RDEPENDS_${PN} = "\
47" 47"
48 48
49BBCLASSEXTEND = "native nativesdk" 49BBCLASSEXTEND = "native nativesdk"
50
51SRC_URI += " \
52 file://run-ptest \
53"
54
55RDEPENDS_${PN}-ptest += " \
56 ${PYTHON_PN}-pytest \
57"
58
59do_install_ptest() {
60 install -d ${D}${PTEST_PATH}/test
61 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
62}