]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3-wcwidth: use python3-unittest-automake-output
authorRoss Burton <ross.burton@arm.com>
Tue, 21 Mar 2023 12:37:43 +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-wcwidth/run-ptest
meta/recipes-devtools/python/python3-wcwidth_0.2.6.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 368146dba4832f9fbc6c73db9e7c3f3931cb2f05..fbd008c13deda07b4c922969b7db25e8f1075072 100644 (file)
@@ -14,11 +14,12 @@ SRC_URI += " \
 
 RDEPENDS:${PN}-ptest += " \
        ${PYTHON_PN}-pytest \
+       ${PYTHON_PN}-unittest-automake-output \
 "
 
 do_install_ptest() {
       install -d ${D}${PTEST_PATH}/tests
-        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+      cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
 
 BBCLASSEXTEND = "native nativesdk"