aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pyroute2
diff options
context:
space:
mode:
authorZheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>2020-05-12 22:34:27 +0800
committerKhem Raj <raj.khem@gmail.com>2020-05-12 12:33:42 -0700
commit638bd31bf82c1c76053a8be05d0723649f72adc2 (patch)
tree5fa78dd19960a0d779b7aa34c9ca2e3d59d7508f /meta-python/recipes-devtools/python/python3-pyroute2
parent6919766bd2b39f00e87189cb5c531cf0f619beb8 (diff)
downloadmeta-openembedded-contrib-638bd31bf82c1c76053a8be05d0723649f72adc2.tar.gz
python3-pyroute2: Modify ptest output format
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pyroute2')
-rw-r--r--meta-python/recipes-devtools/python/python3-pyroute2/run-ptest3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyroute2/run-ptest b/meta-python/recipes-devtools/python/python3-pyroute2/run-ptest
index 5cec711696..ea429ba21e 100644
--- a/meta-python/recipes-devtools/python/python3-pyroute2/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-pyroute2/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}}'
+