summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pytest-sugar
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-06-03 23:37:21 -0700
committerKhem Raj <raj.khem@gmail.com>2025-06-03 23:39:12 -0700
commit5602907c19794c8d027240f15377848e2c6389c2 (patch)
tree3b2c2f7671b50a8fdcf021e1ac42c2e4093349c3 /meta-python/recipes-devtools/python/python3-pytest-sugar
parent547f2a0939cb0335592fefaa5ad52f8514d68cd4 (diff)
downloadmeta-openembedded-5602907c19794c8d027240f15377848e2c6389c2.tar.gz
python3-pytest-sugar: Add recipe
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pytest-sugar')
-rw-r--r--meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest b/meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest
new file mode 100644
index 0000000000..b4bf4b65d8
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest -vv | 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}}'