See also: https://github.com/gentoo/gentoo/pull/44007

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 <[email protected]>
Signed-off-by: Paul Zander <[email protected]>
Signed-off-by: Andreas Sturmlechner <[email protected]>
(cherry picked from commit 657dc69cdd68546003b7877321bc1d2db0ddc849) (kde)
(cherry picked from commit ae57eab324d55a4a0a6fb890d8039e53a7a8930a) (kde)
---
 eclass/cmake.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index e3f9a50a518d..37b181df927b 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -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
-- 
2.51.0

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to