From 87970c841a87b70f1710ef99ec47c2178ba33430 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Tue, 12 May 2020 22:23:20 +0800 Subject: python3-pluggy: Modify ptest output format Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj (cherry picked from commit 60ef83881cb285b8b20f3a178af17120b0a49dac) Signed-off-by: Armin Kuster --- meta-python/recipes-devtools/python/python3-pluggy/run-ptest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-python') 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}}' -- cgit v1.2.3-54-g00ecf