mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-02 16:02:45 +00:00
python3-pyroute2: 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:
parent
63e4df52f2
commit
c9b9004399
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
pytest --automake
|
|
||||||
|
|
||||||
@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dccbff78d7d79ae7e53953d43445c6e6 \
|
|||||||
|
|
||||||
SRC_URI[sha256sum] = "b91f4a1f7abb9824637b1fe67e6e4a0a071d98d4a1a1b47ef792304ff3adad11"
|
SRC_URI[sha256sum] = "b91f4a1f7abb9824637b1fe67e6e4a0a071d98d4a1a1b47ef792304ff3adad11"
|
||||||
|
|
||||||
inherit python_setuptools_build_meta pypi ptest
|
inherit python_setuptools_build_meta pypi ptest-python-pytest
|
||||||
|
|
||||||
RDEPENDS:${PN} += " \
|
RDEPENDS:${PN} += " \
|
||||||
python3-ctypes \
|
python3-ctypes \
|
||||||
@ -22,20 +22,14 @@ RDEPENDS:${PN} += " \
|
|||||||
python3-unixadmin \
|
python3-unixadmin \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI += " \
|
|
||||||
file://run-ptest \
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPENDS:${PN}-ptest += " \
|
RDEPENDS:${PN}-ptest += " \
|
||||||
python3-fcntl \
|
python3-fcntl \
|
||||||
python3-html \
|
python3-html \
|
||||||
python3-netclient \
|
python3-netclient \
|
||||||
python3-pytest \
|
|
||||||
python3-sqlite3 \
|
python3-sqlite3 \
|
||||||
python3-unittest-automake-output \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
do_install_ptest() {
|
do_install_ptest:append () {
|
||||||
install -d ${D}${PTEST_PATH}/tests
|
install -d ${D}${PTEST_PATH}/tests
|
||||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||||
sed -e "s|'test_unit|'tests/test_unit|g" -i ${D}${PTEST_PATH}/tests/test_unit/test_nlmsg/test_marshal.py \
|
sed -e "s|'test_unit|'tests/test_unit|g" -i ${D}${PTEST_PATH}/tests/test_unit/test_nlmsg/test_marshal.py \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user