From c23c7b1745c7e21db7f021f7f7faaf51a2575c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 6 Jun 2018 10:17:20 +0200 Subject: dev-python/clang-python: Fix handling test failures Fix handling test failurse to die on any implementation failing, rather than only on the last one tested. --- dev-python/clang-python/clang-python-6.0.9999.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dev-python/clang-python/clang-python-6.0.9999.ebuild') diff --git a/dev-python/clang-python/clang-python-6.0.9999.ebuild b/dev-python/clang-python/clang-python-6.0.9999.ebuild index e0aa3318ebd9..89b1f72d475d 100644 --- a/dev-python/clang-python/clang-python-6.0.9999.ebuild +++ b/dev-python/clang-python/clang-python-6.0.9999.ebuild @@ -36,8 +36,12 @@ src_unpack() { git-r3_checkout '' '' '' bindings/python } +python_test() { + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" +} + src_test() { - python_foreach_impl python -m unittest discover -v || die + python_foreach_impl python_test } src_install() { -- cgit v1.2.3