diff mbox series

[meta-python,2/3] python3-lz4: Fix ptest result format

Message ID 20231003042313.1153843-2-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/3] python3-pyroute2: Add missing dependency on sqlite3 for ptests | expand

Commit Message

Khem Raj Oct. 3, 2023, 4:23 a.m. UTC
This is to support ptest format
https://wiki.yoctoproject.org/wiki/Ptest

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-python/recipes-devtools/python/python3-lz4/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-lz4/run-ptest b/meta-python/recipes-devtools/python/python3-lz4/run-ptest
index 1b245bcd8f..3004024619 100644
--- a/meta-python/recipes-devtools/python/python3-lz4/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-lz4/run-ptest
@@ -1,3 +1,3 @@ 
 #!/bin/sh
 
-pytest -v
+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}}'