]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python3-more-itertools: use python3-unittest-automake-output
authorRoss Burton <ross.burton@arm.com>
Tue, 21 Mar 2023 12:37:39 +0000 (12:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Mar 2023 22:40:45 +0000 (22:40 +0000)
Instead of using sed to reformat the output use this new module. The
tests also need the statistics module so add this missing dependency.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-more-itertools/run-ptest
meta/recipes-devtools/python/python3-more-itertools_9.1.0.bb

index 3385d68939d4500d72e8c62d7af271773b06c674..8d2017d39ce45b0906c22b4301baaab415bed505 100644 (file)
@@ -1,3 +1,3 @@
 #!/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/SKIPED/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
index 7602350795f9953527f8ad2f867b99db6fe82bcc..f5d107c78dbf44dc2955f0b0d208b939ccdb411c 100644 (file)
@@ -16,7 +16,9 @@ RDEPENDS:${PN} += " \
         "
 
 RDEPENDS:${PN}-ptest += " \
+       ${PYTHON_PN}-statistics \
        ${PYTHON_PN}-pytest \
+       ${PYTHON_PN}-unittest-automake-output \
         "
 
 do_install_ptest() {