mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

The ptest fails after python3-pyroute2 is upgraded to 0.7.9. Fixes: ================================================= tests/test_unit/test_iproute_match/test_match.py:10: in <module> with open('test_unit/test_iproute_match/links.dump', 'r') as f: E FileNotFoundError: [Errno 2] No such file or directory: 'test_unit/test_iproute_match/links.dump' with open(sample, 'r') as buf: E FileNotFoundError: [Errno 2] No such file or directory: 'test_unit/test_nlmsg/gre_01.dump' ================================================= root@qemux86-64:~# ptest-runner python3-pyroute2 START: ptest-runner 2023-08-22T10:31 BEGIN: /usr/lib/python3-pyroute2/ptest ============================= test session starts ============================== platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0 rootdir: /usr/lib/python3-pyroute2/ptest collected 103 items PASS: tests/test_unit/test_addr_pool.py::test_alloc_aligned PASS: tests/test_unit/test_addr_pool.py::test_alloc_odd Signed-off-by: Khem Raj <raj.khem@gmail.com>
41 lines
1.2 KiB
BlitzBasic
41 lines
1.2 KiB
BlitzBasic
SUMMARY = "A pure Python netlink and Linux network configuration library"
|
|
LICENSE = "GPL-2.0-or-later | Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=dccbff78d7d79ae7e53953d43445c6e6 \
|
|
file://LICENSE.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
|
file://LICENSE.Apache-2.0;md5=34281e312165f843a2b7d1f114fe65ce"
|
|
|
|
SRC_URI[sha256sum] = "b69d82f140b0774317d7ba40f6c5fa1d755098ba3f3eb619982d16e750dc631a"
|
|
|
|
inherit setuptools3 pypi ptest
|
|
|
|
RDEPENDS:${PN} += " \
|
|
python3-ctypes \
|
|
python3-distutils \
|
|
python3-io \
|
|
python3-json \
|
|
python3-fcntl \
|
|
python3-logging \
|
|
python3-multiprocessing \
|
|
python3-pickle \
|
|
python3-pkgutil \
|
|
python3-pprint \
|
|
python3-shell \
|
|
python3-unixadmin \
|
|
"
|
|
|
|
SRC_URI += " \
|
|
file://run-ptest \
|
|
"
|
|
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-pytest \
|
|
python3-fcntl \
|
|
"
|
|
|
|
do_install_ptest() {
|
|
install -d ${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 \
|
|
${D}${PTEST_PATH}/tests/test_unit/test_iproute_match/test_match.py
|
|
}
|