From: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
---
eclass/distutils-r1.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 371d52bcb7e..8896768d3ce 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -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
}
--
2.38.2
On 2023-01-05 23:55, alexey+gentoo@asokolov.org wrote:
From: Alexey Sokolov <alexey+gentoo@asokolov.org>
if [[ ${?} -ne 0 ]]; then
- die "Tests failed with ${EPYTHON}"
+ die -n "Tests failed with ${EPYTHON}"
I don't think "nonfatal" should be used with tests. Any valid use cases
for that?
On 6 Jan 2023, at 00:05, Alexey Sokolov <alexey+gentoo@asokolov.org> wrote:
06.01.2023 00:03, Anna пишет:
On 2023-01-05 23:55, alexey+gentoo@asokolov.org wrote:
From: Alexey Sokolov <alexey+gentoo@asokolov.org>I don't think "nonfatal" should be used with tests. Any valid use cases
if [[ ${?} -ne 0 ]]; then
- die "Tests failed with ${EPYTHON}"
+ die -n "Tests failed with ${EPYTHON}"
for that?
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 17:42:03 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,090 |