From 657dc69cdd68546003b7877321bc1d2db0ddc849 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 26 Jan 2025 00:35:42 +0200 Subject: cmake.eclass: allow nonfatal cmake_src_test This is already expected in tree via virtx use. $ qgrep 'virtx cmake_src_test' | wc -l 57 Bug: https://bugs.gentoo.org/961929 Closes: https://github.com/gentoo/gentoo/pull/40307 Signed-off-by: Alfred Wingate Signed-off-by: Andreas Sturmlechner --- eclass/cmake.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass/cmake.eclass') diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 230bca97d09..54f9b8918f0 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -728,9 +728,9 @@ 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" + die -n "Tests failed. When you file a bug, please attach the following file: \n\t${BUILD_DIR}/Testing/Temporary/LastTest.log" fi # die might not die due to nonfatal -- cgit v1.2.3