From: Alexey Sokolov Date: Fri, 1 May 2020 09:45:20 +0000 (+0100) Subject: distutils-r1: fix test runner for setup.py X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e440ddcbdfe8171a4cab55a55aa5aec9ec34ed1d;p=gentoo.git 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 --- diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 51e99a009df1..254a25fd3a6e 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)