Skip to contentSkip to conversation

python3-appdirs: print ptest results in unified format

PATCH Polampalli, Archana 1 participant 1 message Sep 12, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Please ignore this patch.

-Archana
________________________________
From: [email protected] <[email protected]> on behalf of Polampalli, Archana via lists.openembedded.org <[email protected]>
Sent: 12 September 2023 14:22
To: [email protected] <[email protected]>
Subject: [oe][meta-oe][master][mickledore][PATCH 1/1] python3-appdirs: print ptest results in unified format

Update run-ptest script to print the output of python3-appdirs ptest results in unified format

---
 meta-python/recipes-devtools/python/python3-appdirs/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-appdirs/run-ptest +1 -1
index 5287f3e03..b63c4de0d 100644
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-pytest | sed -e 's/\[100%\]//g' | sed -e 's/\.\.F/: FAIL/g' | sed -e 's/\.\.\./: PASS/g'
+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}}'

--
2.40.0