1 |
commit: e440ddcbdfe8171a4cab55a55aa5aec9ec34ed1d |
2 |
Author: Alexey Sokolov <sokolov <AT> google <DOT> com> |
3 |
AuthorDate: Fri May 1 09:45:20 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 10:29:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e440ddcb |
7 |
|
8 |
distutils-r1: fix test runner for setup.py |
9 |
|
10 |
It didn't fail under nonfatal (e.g. by virtx) if the test failed. |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/15590 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
eclass/distutils-r1.eclass | 3 ++- |
16 |
1 file changed, 2 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
19 |
index 51e99a009df..254a25fd3a6 100644 |
20 |
--- a/eclass/distutils-r1.eclass |
21 |
+++ b/eclass/distutils-r1.eclass |
22 |
@@ -416,7 +416,8 @@ distutils_enable_tests() { |
23 |
;; |
24 |
setup.py) |
25 |
python_test() { |
26 |
- esetup.py test --verbose |
27 |
+ nonfatal esetup.py test --verbose || |
28 |
+ die "Tests fail with ${EPYTHON}" |
29 |
} |
30 |
;; |
31 |
unittest) |