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.
This commit is contained in:
Michał Górny
2018-06-06 10:17:20 +02:00
parent 2348ddd40a
commit c23c7b1745
4 changed files with 22 additions and 6 deletions

View File

@@ -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() {