From 5602907c19794c8d027240f15377848e2c6389c2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 3 Jun 2025 23:37:21 -0700 Subject: python3-pytest-sugar: Add recipe Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest (limited to 'meta-python/recipes-devtools/python/python3-pytest-sugar/run-ptest') 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 @@ +#!/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}}' -- cgit v1.2.3-54-g00ecf