From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/nfoview/
Date: Fri, 20 May 2022 03:27:26 +0000 (UTC) [thread overview]
Message-ID: <1653016853.9b6edb1bbe2f8f12c824e707fd199a983fbfd9ed.sam@gentoo> (raw)
commit: 9b6edb1bbe2f8f12c824e707fd199a983fbfd9ed
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 20 03:20:48 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 20 03:20:53 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b6edb1b
app-text/nfoview: simplify test machinery
- Only spawn virtx once for tests
- Use EPYTEST_DESELECT
- Avoid nonfatal trap with virtx/epytest/die [0]
[0] https://projects.gentoo.org/python/guide/distutils.html#running-tests-with-virtualx
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-text/nfoview/nfoview-1.28.1.ebuild | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/app-text/nfoview/nfoview-1.28.1.ebuild b/app-text/nfoview/nfoview-1.28.1.ebuild
index 931ecf18db47..6fbe3ae73b90 100644
--- a/app-text/nfoview/nfoview-1.28.1.ebuild
+++ b/app-text/nfoview/nfoview-1.28.1.ebuild
@@ -29,12 +29,13 @@ RDEPEND="${DEPEND}
media-fonts/cascadia-code
x11-libs/gtk+:3[introspection]"
+EPYTEST_DESELECT=(
+ "nfoview/test/test_util.py::TestModule::test_show_uri__unix"
+ "nfoview/test/test_util.py::TestModule::test_show_uri__windows"
+)
+
distutils_enable_tests pytest
-python_test() {
- local deselect=(
- --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__unix'
- --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__windows'
- )
- virtx epytest "${deselect[@]}"
+src_test() {
+ virtx distutils-r1_src_test
}
next reply other threads:[~2022-05-20 3:27 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-20 3:27 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-28 15:27 [gentoo-commits] repo/gentoo:master commit in: app-text/nfoview/ Michał Górny
2023-02-25 19:08 Michał Górny
2022-05-20 13:28 Joonas Niilola
2022-05-20 1:17 Sam James
2022-05-20 1:17 Sam James
2022-05-20 1:17 Sam James
2021-06-18 14:47 Joonas Niilola
2021-06-18 14:47 Joonas Niilola
2021-06-18 14:47 Joonas Niilola
2020-12-16 8:18 Sam James
2020-12-16 8:18 Sam James
2020-12-16 8:18 Sam James
2020-06-15 10:57 Joonas Niilola
2020-06-15 10:57 Joonas Niilola
2020-04-21 12:45 Joonas Niilola
2019-09-27 5:05 Joonas Niilola
2019-09-27 5:05 Joonas Niilola
2019-01-07 21:06 Georgy Yakovlev
2019-01-07 21:06 Georgy Yakovlev
2018-04-26 10:19 David Seifert
2018-01-16 9:48 Michael Palimaka
2018-01-09 1:47 Andreas Sturmlechner
2018-01-08 20:10 Craig Andrews
2018-01-08 20:10 Craig Andrews
2018-01-08 20:10 Craig Andrews
2017-12-25 19:17 David Seifert
2017-04-24 9:31 Pacho Ramos
2016-04-24 12:07 Pacho Ramos
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=1653016853.9b6edb1bbe2f8f12c824e707fd199a983fbfd9ed.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