]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python3-hypothesis: use python3-unittest-automake-output
authorRoss Burton <ross.burton@arm.com>
Tue, 21 Mar 2023 12:37:36 +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-hypothesis/run-ptest
meta/recipes-devtools/python/python3-hypothesis_6.68.2.bb

index 8d44d7c49ac360ca4ea2d410b9dfe92e6a0fdfa6..54f6e7930f1eee737ee5676340f46fa020905518 100644 (file)
@@ -7,4 +7,4 @@
 #
 # Instead we run two test suites imported from examples/
 
-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 23e842f2e284ceb34ef623bc70804a078d58de4f..4ffe278d78acf174aa9ec152b4231f1981ad4d1f 100644 (file)
@@ -27,6 +27,7 @@ RDEPENDS:${PN} += " \
 
 RDEPENDS:${PN}-ptest += " \
     ${PYTHON_PN}-pytest \
+    ${PYTHON_PN}-unittest-automake-output \
     "
 
 do_install_ptest() {