summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2025-01-17 20:30:21 +0000
committerKhem Raj <raj.khem@gmail.com>2025-01-17 16:39:41 -0800
commitc9b900439908d834a16eec9257ac77e3e3a97597 (patch)
tree6795f6354d7ce56e3bed0310804b291001b04ec4
parent63e4df52f2187caa85a7e6b827f700ad9fa514a9 (diff)
downloadmeta-openembedded-c9b900439908d834a16eec9257ac77e3e3a97597.tar.gz
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>
-rw-r--r--meta-python/recipes-devtools/python/python3-pyroute2/run-ptest4
-rw-r--r--meta-python/recipes-devtools/python/python3-pyroute2_0.8.1.bb10
2 files changed, 2 insertions, 12 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyroute2/run-ptest b/meta-python/recipes-devtools/python/python3-pyroute2/run-ptest
deleted file mode 100644
index f1c8729f0e..0000000000
--- a/meta-python/recipes-devtools/python/python3-pyroute2/run-ptest
+++ /dev/null
@@ -1,4 +0,0 @@
1#!/bin/sh
2
3pytest --automake
4
diff --git a/meta-python/recipes-devtools/python/python3-pyroute2_0.8.1.bb b/meta-python/recipes-devtools/python/python3-pyroute2_0.8.1.bb
index 048b0ca075..8f5ec7fcb4 100644
--- a/meta-python/recipes-devtools/python/python3-pyroute2_0.8.1.bb
+++ b/meta-python/recipes-devtools/python/python3-pyroute2_0.8.1.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dccbff78d7d79ae7e53953d43445c6e6 \
6 6
7SRC_URI[sha256sum] = "b91f4a1f7abb9824637b1fe67e6e4a0a071d98d4a1a1b47ef792304ff3adad11" 7SRC_URI[sha256sum] = "b91f4a1f7abb9824637b1fe67e6e4a0a071d98d4a1a1b47ef792304ff3adad11"
8 8
9inherit python_setuptools_build_meta pypi ptest 9inherit python_setuptools_build_meta pypi ptest-python-pytest
10 10
11RDEPENDS:${PN} += " \ 11RDEPENDS:${PN} += " \
12 python3-ctypes \ 12 python3-ctypes \
@@ -22,20 +22,14 @@ RDEPENDS:${PN} += " \
22 python3-unixadmin \ 22 python3-unixadmin \
23" 23"
24 24
25SRC_URI += " \
26 file://run-ptest \
27"
28
29RDEPENDS:${PN}-ptest += " \ 25RDEPENDS:${PN}-ptest += " \
30 python3-fcntl \ 26 python3-fcntl \
31 python3-html \ 27 python3-html \
32 python3-netclient \ 28 python3-netclient \
33 python3-pytest \
34 python3-sqlite3 \ 29 python3-sqlite3 \
35 python3-unittest-automake-output \
36" 30"
37 31
38do_install_ptest() { 32do_install_ptest:append () {
39 install -d ${D}${PTEST_PATH}/tests 33 install -d ${D}${PTEST_PATH}/tests
40 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ 34 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
41 sed -e "s|'test_unit|'tests/test_unit|g" -i ${D}${PTEST_PATH}/tests/test_unit/test_nlmsg/test_marshal.py \ 35 sed -e "s|'test_unit|'tests/test_unit|g" -i ${D}${PTEST_PATH}/tests/test_unit/test_nlmsg/test_marshal.py \