mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
cmake.eclass: allow nonfatal cmake_src_test, fix pms violation
1) This is already expected in tree via virtx use. 2) Escape sequences are not allowed for `die`, use eerror instead. Bug: https://bugs.gentoo.org/961929 See also: https://github.com/gentoo/gentoo/pull/40307 Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> (cherry picked from commit 657dc69cdd68546003b7877321bc1d2db0ddc849) (kde) (cherry picked from commit ae57eab324d55a4a0a6fb890d8039e53a7a8930a) (kde)
This commit is contained in:
@@ -816,9 +816,11 @@ cmake_src_test() {
|
||||
eerror "--START TEST LOG--------------------------------------------------------------"
|
||||
cat "${BUILD_DIR}/Testing/Temporary/LastTest.log"
|
||||
eerror "--END TEST LOG----------------------------------------------------------------"
|
||||
die "Tests failed."
|
||||
die -n "Tests failed."
|
||||
else
|
||||
die "Tests failed. When you file a bug, please attach the following file: \n\t${BUILD_DIR}/Testing/Temporary/LastTest.log"
|
||||
eerror "Tests failed. When you file a bug, please attach the following file:"
|
||||
eerror "\t${BUILD_DIR}/Testing/Temporary/LastTest.log"
|
||||
die -n "Tests failed."
|
||||
fi
|
||||
|
||||
# die might not die due to nonfatal
|
||||
|
||||
Reference in New Issue
Block a user