public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: <mingli.yu@windriver.com>
To: <openembedded-core@lists.openembedded.org>, <luca.ceresoli@bootlin.com>
Subject: [PATCH v4] python3-cryptography: remove test_x509.py
Date: Mon, 13 Jun 2022 15:30:56 +0800	[thread overview]
Message-ID: <20220613073056.1288293-1-mingli.yu@windriver.com> (raw)
In-Reply-To: <20220609090604.067b8258@booty>

From: Mingli Yu <mingli.yu@windriver.com>

We already have removed --benchmark-disable option to avoid
adding python3-pytest-benchmark rdepends.

Also remove the case test_x509.py which needs benchmark feature
to avoid below failure:
 file /usr/lib64/python3-cryptography/ptest/tests/bench/test_x509.py, line 9
  def test_aki_public_bytes(benchmark):
 >       fixture 'benchmark' not found
 >       available fixtures: backend, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, disable_rsa_checks, doctesty
 >       use 'pytest --fixtures [testpath]' for help on them.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-devtools/python/python3-cryptography_37.0.2.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb b/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
index d7a720bf2b..470cf4388c 100644
--- a/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
+++ b/meta/recipes-devtools/python/python3-cryptography_37.0.2.bb
@@ -104,6 +104,9 @@ do_install_ptest() {
     install -D ${WORKDIR}/check-memfree.py ${D}${PTEST_PATH}/
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+    # remove test_x509.py as it needs benchmark and we don't
+    # want to introduce the benchmark dependency
+    rm -rf ${D}${PTEST_PATH}/tests/bench/test_x509.py
     install -d ${D}${PTEST_PATH}/tests/hazmat
     cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
     cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/
-- 
2.25.1



      reply	other threads:[~2022-06-13  7:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-14  2:13 [PATCH] python3-cryptography: add python3-pytest-benchmark rdepends mingli.yu
2022-05-16  8:45 ` [OE-core] " Luca Ceresoli
2022-05-17  8:16   ` [PATCH v2 1/7] " mingli.yu
2022-05-17  8:16     ` [PATCH 2/7] python3-pytest-benchmark: move from meta-python mingli.yu
2022-05-17  8:16     ` [PATCH 3/7] python3-aspectlib: " mingli.yu
2022-05-17  8:16     ` [PATCH 4/7] python3-py-cpuinfo: " mingli.yu
2022-05-17  8:16     ` [PATCH 5/7] python3-fields: " mingli.yu
2022-05-17  8:16     ` [PATCH 6/7] python3-process-tests: " mingli.yu
2022-05-17  8:16     ` [PATCH 7/7] python3-tornad: " mingli.yu
2022-05-17 15:33       ` [OE-core] " Khem Raj
2022-05-17  8:40     ` [OE-core] [PATCH v2 1/7] python3-cryptography: add python3-pytest-benchmark rdepends richard.purdie
2022-05-17 10:22       ` [PATCH v3] python3-cryptography: remove --benchmark-disable option mingli.yu
2022-06-08  9:31       ` mingli.yu
2022-06-09  7:06         ` [OE-core] " Luca Ceresoli
2022-06-13  7:30           ` mingli.yu [this message]

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=20220613073056.1288293-1-mingli.yu@windriver.com \
    --to=mingli.yu@windriver.com \
    --cc=luca.ceresoli@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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