diff options
author | Archana Polampalli <archana.polampalli@windriver.com> | 2023-09-12 08:52:02 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-12 08:05:51 -0700 |
commit | 96b0d0ded1709fee125aab89a4fb061c03595abd (patch) | |
tree | 508a60fe1027683ddff5677ec3257ede1a1bba55 /meta-python | |
parent | 132b4ae76f6f45f520007e6cdf8e29ffa29cf0e8 (diff) | |
download | meta-openembedded-96b0d0ded1709fee125aab89a4fb061c03595abd.tar.gz |
python3-appdirs: print ptest results in unified format
Update run-ptest script to print the output of python3-appdirs ptest results in
unified format
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-appdirs/run-ptest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-appdirs/run-ptest b/meta-python/recipes-devtools/python/python3-appdirs/run-ptest index 5287f3e03..b63c4de0d 100644 --- a/meta-python/recipes-devtools/python/python3-appdirs/run-ptest +++ b/meta-python/recipes-devtools/python/python3-appdirs/run-ptest | |||
@@ -1,3 +1,3 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | pytest | sed -e 's/\[100%\]//g' | sed -e 's/\.\.F/: FAIL/g' | sed -e 's/\.\.\./: PASS/g' | 3 | 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}}' |