summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexey Sokolov <alexey+gentoo@asokolov.org>2023-01-06 00:20:55 +0000
committerMichał Górny <mgorny@gentoo.org>2023-01-07 15:56:47 +0100
commitfbf5598a9be484ecb4e04af5d0ff2286f1b8f934 (patch)
tree1aa7e29d6e93735b50a36519b42fb99c179d8edd /eclass
parentout-of-source.eclass: Document BUILD_DIR (diff)
downloadgentoo-fbf5598a9be484ecb4e04af5d0ff2286f1b8f934.tar.gz
gentoo-fbf5598a9be484ecb4e04af5d0ff2286f1b8f934.tar.bz2
gentoo-fbf5598a9be484ecb4e04af5d0ff2286f1b8f934.zip
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>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 371d52bcb7ef..8896768d3ce9 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
}