]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python3-pytz: use python3-unittest-automake-output
authorRoss Burton <ross.burton@arm.com>
Tue, 21 Mar 2023 12:37:42 +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.

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

index b63c4de0d9a4d94263a3456e26b72fcee5911f51..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/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
index 553b9cfa1817abf9b7b1b12d1e4726855653978e..e399f2139a7fa0c889c5ce6d45b498577075d956 100644 (file)
@@ -24,6 +24,7 @@ SRC_URI += " \
 
 RDEPENDS:${PN}-ptest += " \
        ${PYTHON_PN}-pytest \
+       ${PYTHON_PN}-unittest-automake-output \
 "
 
 do_install_ptest() {