From 10c10c68b776ade64c4948b4e2e5a123887131d8 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Fri, 16 Feb 2024 16:15:17 -0800 Subject: python3-gunicorn: switch to pytest --automake * Also replace ${PYTHON_PN} with python3 Signed-off-by: Tim Orling Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-gunicorn/run-ptest | 2 +- meta-python/recipes-devtools/python/python3-gunicorn_21.2.0.bb | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-gunicorn/run-ptest b/meta-python/recipes-devtools/python/python3-gunicorn/run-ptest index 98d73fa03..5ca7e26e8 100644 --- a/meta-python/recipes-devtools/python/python3-gunicorn/run-ptest +++ b/meta-python/recipes-devtools/python/python3-gunicorn/run-ptest @@ -4,4 +4,4 @@ # ptests to work, so make sure there's at least one nameserver line echo "nameserver 8.8.8.8" >> /etc/resolv.conf -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 diff --git a/meta-python/recipes-devtools/python/python3-gunicorn_21.2.0.bb b/meta-python/recipes-devtools/python/python3-gunicorn_21.2.0.bb index d765c8fd0..9fd601c99 100644 --- a/meta-python/recipes-devtools/python/python3-gunicorn_21.2.0.bb +++ b/meta-python/recipes-devtools/python/python3-gunicorn_21.2.0.bb @@ -12,9 +12,10 @@ SRC_URI += " \ " RDEPENDS:${PN}-ptest += " \ - ${PYTHON_PN}-eventlet \ - ${PYTHON_PN}-gevent \ - ${PYTHON_PN}-pytest \ + python3-eventlet \ + python3-gevent \ + python3-pytest \ + python3-unittest-automake-output \ " do_install_ptest() { @@ -22,4 +23,4 @@ do_install_ptest() { cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ } -RDEPENDS:${PN} += "${PYTHON_PN}-setuptools ${PYTHON_PN}-fcntl" +RDEPENDS:${PN} += "python3-setuptools python3-fcntl" -- cgit v1.2.3-54-g00ecf