1 |
commit: d860cc01a9fb0585f6a1ae70147bba2a06ff92a7 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 1 21:33:44 2020 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 1 21:35:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d860cc01 |
7 |
|
8 |
dev-python/hiredis: Add python_test() |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
12 |
|
13 |
dev-python/hiredis/hiredis-1.0.1.ebuild | 5 +++++ |
14 |
1 file changed, 5 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hiredis/hiredis-1.0.1.ebuild b/dev-python/hiredis/hiredis-1.0.1.ebuild |
17 |
index bc7739eaeec..1e14c85fa39 100644 |
18 |
--- a/dev-python/hiredis/hiredis-1.0.1.ebuild |
19 |
+++ b/dev-python/hiredis/hiredis-1.0.1.ebuild |
20 |
@@ -22,3 +22,8 @@ PATCHES=( |
21 |
"${FILESDIR}"/${P}-system-libs.patch |
22 |
"${FILESDIR}"/${P}-api-0.14.patch |
23 |
) |
24 |
+ |
25 |
+python_test() { |
26 |
+ cd test |
27 |
+ "${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed" |
28 |
+} |