1 |
commit: b1c12dbc3f1f40f49fe84cf1331fe1caee47fa31 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 27 16:45:07 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 27 16:47:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c12dbc |
7 |
|
8 |
app-portage/mirrorselect: implement python_test for 9999 |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-portage/mirrorselect/mirrorselect-9999.ebuild | 6 +++++- |
14 |
1 file changed, 5 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/app-portage/mirrorselect/mirrorselect-9999.ebuild b/app-portage/mirrorselect/mirrorselect-9999.ebuild |
17 |
index d93b586c58d..5d2c102afc2 100644 |
18 |
--- a/app-portage/mirrorselect/mirrorselect-9999.ebuild |
19 |
+++ b/app-portage/mirrorselect/mirrorselect-9999.ebuild |
20 |
@@ -27,13 +27,17 @@ RDEPEND=" |
21 |
" |
22 |
|
23 |
python_prepare_all() { |
24 |
- python_export_best |
25 |
+ python_setup |
26 |
eprefixify setup.py mirrorselect/main.py |
27 |
echo Now setting version... VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version |
28 |
VERSION="9999-${EGIT_VERSION}" "${PYTHON}" setup.py set_version || die "setup.py set_version failed" |
29 |
distutils-r1_python_prepare_all |
30 |
} |
31 |
|
32 |
+python_test() { |
33 |
+ esetup.py test || die "tests failed under ${EPYTHON}" |
34 |
+} |
35 |
+ |
36 |
pkg_postinst() { |
37 |
distutils-r1_pkg_postinst |