* [gentoo-dev] [PATCH] cmake.eclass: allow nonfatal cmake_src_test, fix pms violation
@ 2025-10-02 18:04 Andreas Sturmlechner
0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2025-10-02 18:04 UTC (permalink / raw
To: gentoo-dev, kde, base-system
[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]
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 <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)
---
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 #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 789 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-10-02 18:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-02 18:04 [gentoo-dev] [PATCH] cmake.eclass: allow nonfatal cmake_src_test, fix pms violation Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox