aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2020-05-12 22:23:20 +0800
committerArmin Kuster <akuster808@gmail.com>2020-05-17 14:46:14 -0700
commit87970c841a87b70f1710ef99ec47c2178ba33430 (patch)
treefb33fbcc7d3bda813ab3fd76abdbf4814bc03c7a /meta-python
parentdb209bf7fb6666944da1285e733137fc0f192c39 (diff)
downloadmeta-openembedded-contrib-87970c841a87b70f1710ef99ec47c2178ba33430.tar.gz
python3-pluggy: Modify ptest output format
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 60ef83881cb285b8b20f3a178af17120b0a49dac) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-pluggy/run-ptest3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pluggy/run-ptest b/meta-python/recipes-devtools/python/python3-pluggy/run-ptest
index 40c284799d..b63c4de0d9 100644
--- a/meta-python/recipes-devtools/python/python3-pluggy/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-pluggy/run-ptest
@@ -1,2 +1,3 @@
#!/bin/sh
-pytest
+
+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}}'