public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tlsh/
Date: Mon, 17 Jun 2024 05:57:23 +0000 (UTC)	[thread overview]
Message-ID: <1718603820.f218f5a0b86e2e50ec4c03f5825aab89074c0a0c.sam@gentoo> (raw)

commit:     f218f5a0b86e2e50ec4c03f5825aab89074c0a0c
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Jun 17 05:16:02 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 05:57:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f218f5a0

dev-python/tlsh: actually wire up testsuite

Upstream has a testsuite, it's just in a different directory compared to
the python module itself. It internally uses the script we used to
crudely run, but it also actually checks the results against fixtures.

As a result, it checks more than just "smoketest: does the module import
and execute its functions without literally crashing".

It also doesn't redirect the testsuite stdout/stderr to devnull, since
it now actually does something constructive and we'd like to see the
status from it.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/tlsh/tlsh-4.8.2-r1.ebuild | 2 +-
 dev-python/tlsh/tlsh-4.8.2.ebuild    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-python/tlsh/tlsh-4.8.2-r1.ebuild b/dev-python/tlsh/tlsh-4.8.2-r1.ebuild
index 94ebb2d03eab..f453210afb6b 100644
--- a/dev-python/tlsh/tlsh-4.8.2-r1.ebuild
+++ b/dev-python/tlsh/tlsh-4.8.2-r1.ebuild
@@ -26,5 +26,5 @@ PATCHES=(
 )
 
 python_test() {
-	"${EPYTHON}" test.py test.py test.py &> /dev/null || die
+	../Testing/python_test.sh "${EPYTHON}" || die
 }

diff --git a/dev-python/tlsh/tlsh-4.8.2.ebuild b/dev-python/tlsh/tlsh-4.8.2.ebuild
index 0973a0cbb0a7..d9039383fb11 100644
--- a/dev-python/tlsh/tlsh-4.8.2.ebuild
+++ b/dev-python/tlsh/tlsh-4.8.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -30,5 +30,5 @@ src_prepare() {
 }
 
 python_test() {
-	"${EPYTHON}" test.py test.py test.py &> /dev/null || die
+	../Testing/python_test.sh "${EPYTHON}" || die
 }


             reply	other threads:[~2024-06-17  5:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17  5:57 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-08  9:36 [gentoo-commits] repo/gentoo:master commit in: dev-python/tlsh/ Sam James
2024-07-06  8:33 Michał Górny
2024-07-06  7:26 Arthur Zamarin
2024-07-06  6:12 Sam James
2023-06-24  6:43 Sam James
2022-12-31 12:10 Arthur Zamarin
2022-11-10  7:48 Sam James
2022-08-30 22:22 Sam James
2022-07-27  4:16 Sam James
2022-07-27  4:16 Sam James
2022-06-24  9:11 Arthur Zamarin
2022-06-14  5:58 Jakov Smolić
2022-06-12  5:11 Sam James
2022-06-08  7:44 Jakov Smolić

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=1718603820.f218f5a0b86e2e50ec4c03f5825aab89074c0a0c.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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