diff mbox series

[meta-python,01/10] python3-pyroute2: update recipe to use the ptest-python-pytest class

Message ID 20250117203030.3648575-1-derek@asterius.io
State Accepted
Headers show
Series [meta-python,01/10] python3-pyroute2: update recipe to use the ptest-python-pytest class | expand

Commit Message

Derek Straka Jan. 17, 2025, 8:30 p.m. UTC
Signed-off-by: Derek Straka <derek@asterius.io>
---
 .../recipes-devtools/python/python3-pyroute2/run-ptest |  4 ----
 .../recipes-devtools/python/python3-pyroute2_0.8.1.bb  | 10 ++--------
 2 files changed, 2 insertions(+), 12 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pyroute2/run-ptest
diff mbox series

Patch

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 f1c8729f0..000000000
--- a/meta-python/recipes-devtools/python/python3-pyroute2/run-ptest
+++ /dev/null
@@ -1,4 +0,0 @@ 
-#!/bin/sh
-
-pytest --automake
-
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 048b0ca07..8f5ec7fcb 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 \
 
 SRC_URI[sha256sum] = "b91f4a1f7abb9824637b1fe67e6e4a0a071d98d4a1a1b47ef792304ff3adad11"
 
-inherit python_setuptools_build_meta pypi ptest
+inherit python_setuptools_build_meta pypi ptest-python-pytest
 
 RDEPENDS:${PN} += " \
     python3-ctypes \
@@ -22,20 +22,14 @@  RDEPENDS:${PN} += " \
     python3-unixadmin \
 "
 
-SRC_URI += " \
-    file://run-ptest \
-"
-
 RDEPENDS:${PN}-ptest += " \
     python3-fcntl \
     python3-html \
     python3-netclient \
-    python3-pytest \
     python3-sqlite3 \
-    python3-unittest-automake-output \
 "
 
-do_install_ptest() {
+do_install_ptest:append () {
     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 \