summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2025-01-17 18:59:44 +0000
committerKhem Raj <raj.khem@gmail.com>2025-01-17 11:29:14 -0800
commit410816524882e1a42fa1277b4ebbd58f16f15a52 (patch)
treeffdc3bff49c4a6d5510eb256b00f9f00d8573187 /meta-python/recipes-devtools/python
parent3eee9c0f509be55c53477ffd3c2567028e9a576c (diff)
downloadmeta-openembedded-410816524882e1a42fa1277b4ebbd58f16f15a52.tar.gz
python3-pyserial: update recipe to use the ptest-python-pytest class
Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-pyserial/run-ptest4
-rw-r--r--meta-python/recipes-devtools/python/python3-pyserial_3.5.bb17
2 files changed, 3 insertions, 18 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyserial/run-ptest b/meta-python/recipes-devtools/python/python3-pyserial/run-ptest
deleted file mode 100644
index b651411db7..0000000000
--- a/meta-python/recipes-devtools/python/python3-pyserial/run-ptest
+++ /dev/null
@@ -1,4 +0,0 @@
1#!/bin/sh
2
3
4pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb b/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb
index ade137a385..93a81568c2 100644
--- a/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb
+++ b/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb
@@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=520e45e59fc2cf94aa53850f46b86436"
4 4
5SRC_URI[sha256sum] = "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb" 5SRC_URI[sha256sum] = "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"
6 6
7inherit pypi setuptools3 ptest 7inherit pypi setuptools3 ptest-python-pytest
8
9PTEST_PYTEST_DIR = "test"
8 10
9do_install:append() { 11do_install:append() {
10 rm -f ${D}${bindir}/pyserial-miniterm 12 rm -f ${D}${bindir}/pyserial-miniterm
@@ -49,16 +51,3 @@ RDEPENDS:${PN} = "\
49 51
50BBCLASSEXTEND = "native nativesdk" 52BBCLASSEXTEND = "native nativesdk"
51 53
52SRC_URI += " \
53 file://run-ptest \
54"
55
56RDEPENDS:${PN}-ptest += " \
57 python3-pytest \
58 python3-unittest-automake-output \
59"
60
61do_install_ptest() {
62 install -d ${D}${PTEST_PATH}/test
63 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
64}