summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2024-02-16 16:15:20 -0800
committerKhem Raj <raj.khem@gmail.com>2024-02-16 16:42:35 -0800
commit2122299d9d3c3faf217dd37de22454cd398189e3 (patch)
treed4b49b957bd46314c736a4bfd40c5f1bde0d5602 /meta-python/recipes-devtools/python
parent7235412ef452e188b0ce1afaaa96e6fc34ea3524 (diff)
downloadmeta-openembedded-2122299d9d3c3faf217dd37de22454cd398189e3.tar.gz
python3-smpplib: switch to pytest --automake
* Also replace ${PYTHON_PN} with python3 * Sort RDEPENDS for ptest alphabetically Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r--meta-python/recipes-devtools/python/python3-smpplib/run-ptest2
-rw-r--r--meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb13
2 files changed, 8 insertions, 7 deletions
diff --git a/meta-python/recipes-devtools/python/python3-smpplib/run-ptest b/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
index b63c4de0d9..8d2017d39c 100644
--- a/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-smpplib/run-ptest
@@ -1,3 +1,3 @@
1#!/bin/sh 1#!/bin/sh
2 2
3pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' 3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb b/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb
index 25f8f6afdd..7979f04c5b 100644
--- a/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb
+++ b/meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb
@@ -13,15 +13,16 @@ SRC_URI += " \
13" 13"
14 14
15RDEPENDS:${PN} += " \ 15RDEPENDS:${PN} += " \
16 ${PYTHON_PN}-logging \ 16 python3-logging \
17 ${PYTHON_PN}-six \ 17 python3-six \
18" 18"
19 19
20RDEPENDS:${PN}-ptest += " \ 20RDEPENDS:${PN}-ptest += " \
21 ${PYTHON_PN}-pytest \ 21 python3-mock \
22 ${PYTHON_PN}-unittest \ 22 python3-profile \
23 ${PYTHON_PN}-profile \ 23 python3-pytest \
24 ${PYTHON_PN}-mock \ 24 python3-unittest \
25 python3-unittest-automake-output \
25" 26"
26 27
27do_install_ptest() { 28do_install_ptest() {