meta-openembedded/meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest
Khem Raj 5602907c19 python3-pytest-sugar: Add recipe
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-03 23:39:12 -07:00

369 B

#!/bin/sh

pytest -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}}'