1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

python3-pyasn1: : use python3-unittest-automake-output

Instead of using sed to reformat the output use this new module.

(From OE-Core rev: d83b60647bcbd32f57796085ed5f8e19c30e576a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2023-03-21 12:37:41 +00:00
committed by Richard Purdie
parent dc550f5490
commit 578cd2b611
2 changed files with 2 additions and 1 deletions
@@ -24,6 +24,7 @@ SRC_URI += " \
RDEPENDS:${PN}-ptest += " \ RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \ ${PYTHON_PN}-pytest \
${PYTHON_PN}-unittest-automake-output \
" "
do_install_ptest() { do_install_ptest() {
@@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
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}}' pytest --automake