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>
This commit is contained in:
Derek Straka 2025-01-17 18:59:44 +00:00 committed by Khem Raj
parent 3eee9c0f50
commit 4108165248
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 3 additions and 18 deletions

View File

@ -1,4 +0,0 @@
#!/bin/sh
pytest --automake

View File

@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=520e45e59fc2cf94aa53850f46b86436"
SRC_URI[sha256sum] = "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"
inherit pypi setuptools3 ptest
inherit pypi setuptools3 ptest-python-pytest
PTEST_PYTEST_DIR = "test"
do_install:append() {
rm -f ${D}${bindir}/pyserial-miniterm
@ -49,16 +51,3 @@ RDEPENDS:${PN} = "\
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
}