From e440ddcbdfe8171a4cab55a55aa5aec9ec34ed1d Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 1 May 2020 10:45:20 +0100 Subject: [PATCH] distutils-r1: fix test runner for setup.py MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 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) -- 2.26.2