aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorZheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>2020-05-12 22:31:46 +0800
committerArmin Kuster <akuster808@gmail.com>2020-05-17 14:46:14 -0700
commit7d19977984b1e5c97ecea22ad246b50d025129e6 (patch)
tree760c6ff16ffde2ec47c8dcbe7a8057a00ce18948 /meta-python
parent28f7192a541928fc91df41a166161412956cefe4 (diff)
downloadmeta-openembedded-7d19977984b1e5c97ecea22ad246b50d025129e6.tar.gz
meta-openembedded-7d19977984b1e5c97ecea22ad246b50d025129e6.tar.bz2
meta-openembedded-7d19977984b1e5c97ecea22ad246b50d025129e6.zip
python3-pyserial: Modify ptest output format
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 6919766bd2b39f00e87189cb5c531cf0f619beb8) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-pyserial/run-ptest3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyserial/run-ptest b/meta-python/recipes-devtools/python/python3-pyserial/run-ptest
index 5cec71169..e301963f9 100644
--- a/meta-python/recipes-devtools/python/python3-pyserial/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-pyserial/run-ptest
@@ -1,3 +1,4 @@
#!/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}}'