Skip to contentSkip to conversation

python3-jsmin: Fix ptests to run with python 3.12+

PATCH New Khem Raj 1 participant 1 message Feb 22, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 python3-jsmin: Fix ptests to run with python 3.12+

Remove it from problematic tests list ot fast list as it runs ok now.

---
v2: Fix test output and remove from problematic list

 .../ptest-packagelists-meta-python.inc        |  1 -
 ...d76c2d6bfb917f30ced8f5c0a9a4157f7819.patch | 82 +++++++++++++++++++
 .../python/python3-jsmin/run-ptest            |  3 +-
 .../python/python3-jsmin_3.0.1.bb             |  1 +
 4 files changed, 84 insertions(+), 3 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-jsmin/7a75d76c2d6bfb917f30ced8f5c0a9a4157f7819.patch
meta-python/conf/include/ptest-packagelists-meta-python.inc +0 -1
index c899166a7c..790d5b019d 100644
@@ -76,7 +76,6 @@ PTESTS_PROBLEMS_META_PYTHON ="\
     python3-dnspython \
     python3-fastjsonschema \
     python3-gpiod \
-    python3-jsmin \
     python3-ordered-set \
     python3-pillow \
     python3-pint \
meta-python/recipes-devtools/python/python3-jsmin/7a75d76c2d6bfb917f30ced8f5c0a9a4157f7819.patch new file +82 -0

82 lines not on this page · raw message

meta-python/recipes-devtools/python/python3-jsmin/run-ptest +1 -2
index cbcfffda5b..586608d7b2 100644
@@ -1,3 +1,2 @@
 #!/bin/sh
-
-python3 test.py
+pytest -vv test.py | 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-jsmin_3.0.1.bb +1 -0
index 15c9b14595..c3129e7b53 100644
@@ -10,6 +10,7 @@ SRC_URI[sha256sum] = "c0959a121ef94542e807a674142606f7e90214a2b3d1eb17300244bbb5
 BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI += " \
+  file://7a75d76c2d6bfb917f30ced8f5c0a9a4157f7819.patch \
 	file://run-ptest \
 "
 
Signature · 1 line
2.43.2