distutils-r1.eclass: support nonfatal in test

Rationale:

src_test() {
  virtx distutils-r1_src_test
}

If the test fails with "die", Xvfb keeps running forever; but it's
cleaned up correctly with die -n

Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Alexey Sokolov
2023-01-07 15:56:47 +01:00
committed by Michał Górny
parent 98938d6b6d
commit fbf5598a9b
+2 -2
View File
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: distutils-r1.eclass
@@ -1559,7 +1559,7 @@ distutils-r1_python_test() {
esac
if [[ ${?} -ne 0 ]]; then
die "Tests failed with ${EPYTHON}"
die -n "Tests failed with ${EPYTHON}"
fi
}