python3-invoke: Enable tests

Inherit ptest-python-pytest and include tests for invoke.
Use -s because some tests read from stdin while output is
captured. Skip tests that require a real terminal.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Leon Anavi
2026-07-21 17:11:05 +03:00
committed by Khem Raj
parent b883bd305d
commit 4708606398
2 changed files with 40 additions and 8 deletions
@@ -3,16 +3,29 @@ HOMEPAGE = "https://www.pyinvoke.org/"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a8815068973f31b78c328dc067e297ab"
SRC_URI += "file://run-ptest"
SRC_URI[sha256sum] = "437b6a622223824380bfb4e64f612711a6b648c795f565efc8625af66fb57f0c"
inherit pypi python_setuptools_build_meta
inherit pypi python_setuptools_build_meta ptest-python-pytest
RDEPENDS:${PN} += " \
python3-fcntl \
python3-json \
python3-logging \
python3-pprint \
python3-terminal \
python3-unittest \
python3-unixadmin \
python3-fcntl \
python3-json \
python3-logging \
python3-pprint \
python3-terminal \
python3-unittest \
python3-unixadmin \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-pytest-benchmark \
python3-core \
python3-io \
python3-pytest-relaxed \
python3-icecream \
python3-unittest \
python3-unittest-automake-output \
"