From 6919766bd2b39f00e87189cb5c531cf0f619beb8 Mon Sep 17 00:00:00 2001 From: Zheng Ruoqin Date: Tue, 12 May 2020 22:31:46 +0800 Subject: python3-pyserial: Modify ptest output format Signed-off-by: Zheng Ruoqin Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-pyserial/run-ptest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python3-pyserial') 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}}' -- cgit 1.2.3-korg