diff options
author | Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | 2020-05-12 22:31:46 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-05-12 12:33:42 -0700 |
commit | 6919766bd2b39f00e87189cb5c531cf0f619beb8 (patch) | |
tree | 1dcee0387dbc7b74f9527540661487783250a0a0 /meta-python/recipes-devtools/python/python3-pyserial/run-ptest | |
parent | 7b39cd7ad26bee0f71c3d7ea3bd6ed8848ab1871 (diff) | |
download | meta-openembedded-contrib-6919766bd2b39f00e87189cb5c531cf0f619beb8.tar.gz |
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>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pyserial/run-ptest')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pyserial/run-ptest | 3 |
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 5cec711696..e301963f96 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}}' |