mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
python3-pyserial: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest
|
||||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d476d94926db6e0008a5b3860d1f5c0d"
|
||||
SRC_URI[md5sum] = "ed6183b15519a0ae96675e9c3330c69b"
|
||||
SRC_URI[sha256sum] = "6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627"
|
||||
|
||||
inherit pypi setuptools3
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
do_install_append() {
|
||||
rm -f ${D}${bindir}/miniterm.py
|
||||
@@ -47,3 +47,16 @@ RDEPENDS_${PN} = "\
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/test
|
||||
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user