Skip to contentSkip to conversation

python3-multidict: Fix running ptests

PATCH New Khem Raj 1 participant 1 message Jan 21, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-multidict: Fix running ptests

Add missing runtime dependency on pytest-cov
and move the test to PTESTS_FAST_META_PYTHON since it takes < 20 seconds

---
 meta-python/conf/include/ptest-packagelists-meta-python.inc    | 2 +-
 .../recipes-devtools/python/python3-multidict/run-ptest        | 3 +--
 meta-python/recipes-devtools/python/python3-multidict_6.0.4.bb | 1 +
 3 files changed, 3 insertions(+), 3 deletions(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -1
index 2c75d511b3..44507b394e 100644
@@ -22,6 +22,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-intervals \
     python3-ipy \
     python3-iso3166 \
+    python3-multidict \
     python3-parse-type \
     python3-platformdirs \
     python3-polyline \
@@ -71,7 +72,6 @@ PTESTS_PROBLEMS_META_PYTHON ="\
     python3-jsmin \
     python3-license-expression \
     python3-msgpack \
-    python3-multidict \
     python3-ordered-set \
     python3-parse \
     python3-pillow \
meta-python/recipes-devtools/python/python3-multidict/run-ptest +1 -2
index 5cec711696..e4f3b623ab 100644
@@ -1,3 +1,2 @@
 #!/bin/sh
-
-pytest
+pytest -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}}'
meta-python/recipes-devtools/python/python3-multidict_6.0.4.bb +1 -0
index 23d3eb3155..b057e05f65 100644
@@ -19,6 +19,7 @@ SRC_URI += " \
 
 RDEPENDS:${PN}-ptest += " \
 	${PYTHON_PN}-pytest \
+	${PYTHON_PN}-pytest-cov \
 "
 
 do_install_ptest() {
Signature · 1 line
2.43.0