diff mbox series

[meta-python,03/12] python3-ecdsa: deselect test with upstream PEM-fixture bug

Message ID 20260816232358.1947922-3-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,01/12] python3-cbor2: add tzdata/zoneinfo RDEPENDS for ptest | expand

Commit Message

Khem Raj Aug. 16, 2026, 11:23 p.m. UTC
From: Khem Raj <raj.khem@gmail.com>

test_SigningKey_from_pem_pkcs8v2_EdDSA embeds its PEM fixture as an
indented triple-quoted string, but der.unpem() only recognizes
"-----BEGIN/END-----" markers with no leading whitespace; the indented
END marker gets swallowed into the base64 payload instead of being
stripped, so it fails with "Incorrect padding" regardless of
environment. Upstream test-authoring bug in 0.19.2, not a packaging
issue.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-python/recipes-devtools/python/python3-ecdsa_0.19.2.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-ecdsa_0.19.2.bb b/meta-python/recipes-devtools/python/python3-ecdsa_0.19.2.bb
index 5bb1da85b6..59774a1681 100644
--- a/meta-python/recipes-devtools/python/python3-ecdsa_0.19.2.bb
+++ b/meta-python/recipes-devtools/python/python3-ecdsa_0.19.2.bb
@@ -17,6 +17,8 @@  RDEPENDS:${PN}-ptest += " \
 do_install_ptest:append () {
 	install -d ${D}${PTEST_PATH}/tests
 	cp -rf ${S}/src/ecdsa/* ${D}${PTEST_PATH}/tests/
+	sed -i -e "/--automake/ s/$/ -k 'not test_SigningKey_from_pem_pkcs8v2_EdDSA'/" \
+		${D}${PTEST_PATH}/run-ptest
 }
 
 RDEPENDS:${PN} += " \