From: Babanpreet Singh <bbnpreetsingh@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Tim Orling <tim.orling@konsulko.com>,
Randy MacLeod <randy.macleod@windriver.com>,
Babanpreet Singh <bbnpreetsingh@gmail.com>
Subject: [PATCH] python3-pyopenssl: enable ptest
Date: Thu, 20 Aug 2026 04:28:51 +0000 [thread overview]
Message-ID: <20260820042851.7-1-bbnpreetsingh@gmail.com> (raw)
* 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 --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"
--
2.43.0
reply other threads:[~2026-08-20 4:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260820042851.7-1-bbnpreetsingh@gmail.com \
--to=bbnpreetsingh@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=randy.macleod@windriver.com \
--cc=tim.orling@konsulko.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox