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