From: Alexey Sokolov <[email protected]>
Signed-off-by: Alexey Sokolov <[email protected]>
---
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, [email protected] wrote:
From: Alexey Sokolov <[email protected]>
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 <[email protected]> wrote:
06.01.2023 00:03, Anna пишет:
On 2023-01-05 23:55, [email protected] wrote:
From: Alexey Sokolov <[email protected]>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: | 715 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 167:19:26 |
| Calls: | 12,096 |
| Calls today: | 4 |
| Files: | 15,003 |
| Messages: | 6,517,812 |