Skip to contentSkip to conversation

python3-appdirs: add ptest into PTESTS_FAST_META_PYTHON items

PATCH New Derek Straka 1 participant 3 messages Feb 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python3-appdirs: add ptest into PTESTS_FAST_META_PYTHON items

Verified successful test run using bitbake meta-python-image-ptest-python3-appdirs on qemu86-64

root@qemux86-64:/usr/lib/python3-appdirs/ptest# ./run-ptest
============================= test session starts ==============================
platform linux -- Python 3.12.1, pytest-7.4.4, pluggy-1.3.0
rootdir: /usr/lib/python3-appdirs/ptest
collected 3 items

PASS: test/test_api.py::Test_AppDir::test_dirs
PASS: test/test_api.py::Test_AppDir::test_helpers
PASS: test/test_api.py::Test_AppDir::test_metadata

============================== 3 passed in 0.19s ===============================

---
 meta-python/conf/include/ptest-packagelists-meta-python.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -1
index 44704208e..a96009ab9 100644
@@ -7,6 +7,7 @@
 #
 # ptests which take less than ~30s each
 PTESTS_FAST_META_PYTHON = "\
+    python3-appdirs \
     python3-ansicolors \
     python3-asgiref \
     python3-aspectlib \
@@ -62,7 +63,6 @@ PTESTS_SLOW_META_PYTHON = "\
 "
 
 PTESTS_PROBLEMS_META_PYTHON ="\
-    python3-appdirs \
     python3-betamax \
     python3-dnspython \
     python3-fastjsonschema \
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/3 python3-yarl: add ptest into PTESTS_FAST_META_PYTHON items

Verified successful test run using bitbake meta-python-image-ptest-python3-yarl on qemu86-64

1106 passed, 5 xfailed in 22.83s. xfailed tests are known failures upstream

---
 meta-python/conf/include/ptest-packagelists-meta-python.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -1
index a96009ab9..67e861ba8 100644
@@ -55,6 +55,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-uritemplate \
     python3-xmltodict \
     python3-xxhash \
+    python3-yarl \
 "
 
 PTESTS_SLOW_META_PYTHON = "\
@@ -86,5 +87,4 @@ PTESTS_PROBLEMS_META_PYTHON ="\
     python3-whoosh \
     python3-ujson \
     python3-xlrd \
-    python3-yarl \
 "
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/3 python3-ujson: add ptest into PTESTS_FAST_META_PYTHON items

In reply to Derek Straka

Verified successful test run using bitbake meta-python-image-ptest-python3-ujson on qemu86-64

291 passed in 9.08s.

---
 meta-python/conf/include/ptest-packagelists-meta-python.inc | 2 +-
 meta-python/recipes-devtools/python/python3-ujson/run-ptest | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -1
index 67e861ba8..598548262 100644
@@ -50,6 +50,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-soupsieve \
     python3-sqlparse \
     python3-tomlkit \
+    python3-ujson \
     python3-u-msgpack-python \
     python3-unidiff \
     python3-uritemplate \
@@ -85,6 +86,5 @@ PTESTS_PROBLEMS_META_PYTHON ="\
     python3-trustme \
     python3-typeguard \
     python3-whoosh \
-    python3-ujson \
     python3-xlrd \
 "
meta-python/recipes-devtools/python/python3-ujson/run-ptest +1 -1
index b1539453a..b63c4de0d 100644
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-python3 tests/test_ujson.py
+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}}'
Signature · 1 line
2.34.1