python3-pyopenssl: enable ptest
PATCH 1/1 python3-pyopenssl: enable ptest
* Do not install pyproject.toml into ${PTEST_PATH}: it sets --strict-markers, which fails collection on the pytest.mark.flaky tests because pytest-rerunfailures is not in oe-core.
* 432 test cases pass with no failures.
[YOCTO #16391]
Signed-off-by Babanpreet Singh <[email protected]>
---
Tested with testimage on core-image-ptest-python3-pyopenssl, qemux86-64:
432 passed, 0 failed, 0 skipped, 118s under TCG (no KVM on the build host; the suite takes 11s natively, hence PTESTS_FAST).
meta/conf/distro/include/ptest-packagelists.inc | 1 + meta/recipes-devtools/python/python3-pyopenssl_26.4.0.bb | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-)
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -86,6 +86,7 @@ PTESTS_FAST = "\ python3-pluggy \ python3-pefile \ python3-pyasn1 \ + python3-pyopenssl \ python3-pytz \ python3-pyyaml \ python3-rpds-py \
meta/recipes-devtools/python/python3-pyopenssl_26.4.0.bb +8 -1
@@ -7,7 +7,7 @@ DEPENDS += "openssl python3-cryptography" SRC_URI[sha256sum] = "28dfcce0162b9211413e26dfbfdf1d24317fbeba18fc93c12400a1856b2a0bc7" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest-python-pytest PACKAGES =+ "${PN}-tests" FILES:${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"
@@ -18,6 +18,13 @@ RDEPENDS:${PN}:class-target = " \ " RDEPENDS:${PN}-tests = "${PN}" +RDEPENDS:${PN}-ptest += " \ + python3-datetime \ + python3-io \ + python3-netclient \ + python3-pretend \ +" + CVE_PRODUCT = "jean-paul_calderone:pyopenssl pyca:pyopenssl pyopenssl:pyopenssl pyopenssl_project:pyopenssl" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0