From 5c7400ca760ff32b2c7b1ca939e5a68e7b4411c9 Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Thu, 23 Oct 2025 23:29:01 +0200 Subject: python3-pint: fix ptests 1. Add missing ptest dependency (pytest-subtest) 2. The testsuite is installed in both the site-packages and ${PTEST_PATH} folders, however some dependencies are only available in the site-packages folder, so many test cases fail. At this point of the branch lifecycle I decided not to refactor the recipe, but rather to just use the installation in the site-packages dir to run the tests (switch to that folder in the run-ptest script) 3. Fix the run-ptest script to output PASS/FAIL status. Signed-off-by: Gyorgy Sarvari --- meta-python/recipes-devtools/python/python3-pint/run-ptest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python3-pint') diff --git a/meta-python/recipes-devtools/python/python3-pint/run-ptest b/meta-python/recipes-devtools/python/python3-pint/run-ptest index 5cec711696..6abbb5de73 100644 --- a/meta-python/recipes-devtools/python/python3-pint/run-ptest +++ b/meta-python/recipes-devtools/python/python3-pint/run-ptest @@ -1,3 +1,4 @@ #!/bin/sh -pytest +cd /usr/lib/python3*/site-packages/pint +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}}' -- cgit v1.2.3-54-g00ecf