diff mbox series

python3-pyopenssl: enable ptest

Message ID 20260820042851.7-1-bbnpreetsingh@gmail.com
State Under Review
Headers show
Series python3-pyopenssl: enable ptest | expand

Commit Message

Babanpreet Singh Aug. 20, 2026, 4:28 a.m. UTC
* 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 <bbnpreetsingh@gmail.com>
---
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(-)
diff mbox series

Patch

diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 370606ead7..ce6c0a2d76 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -86,6 +86,7 @@  PTESTS_FAST = "\
     python3-pluggy \
     python3-pefile \
     python3-pyasn1 \
+    python3-pyopenssl \
     python3-pytz \
     python3-pyyaml \
     python3-rpds-py \
diff --git a/meta/recipes-devtools/python/python3-pyopenssl_26.4.0.bb b/meta/recipes-devtools/python/python3-pyopenssl_26.4.0.bb
index 6246375afc..0aa1e8991e 100644
--- a/meta/recipes-devtools/python/python3-pyopenssl_26.4.0.bb
+++ b/meta/recipes-devtools/python/python3-pyopenssl_26.4.0.bb
@@ -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"