From 1a073ec6278dabf6a58ff758f9cbf9fb42427f3c Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Wed, 19 Jun 2024 07:56:25 +0200
Subject: [PATCH] [CI] Removed output on failure

---
 CMakeLists.txt                | 1 -
 CMakePresets.json             | 3 ---
 scripts/cmake/test/Test.cmake | 5 +----
 3 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ba12779790..67d8a387b28 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -237,7 +237,6 @@ endif()
 set(_envrc_content
     "[ -d \"${PROJECT_BINARY_DIR}/.venv\" ] && source ${PROJECT_BINARY_DIR}/.venv/bin/activate"
     "export PATH=$PATH:${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}"
-    "export CTEST_OUTPUT_ON_FAILURE=1"
 )
 if(TFEL_WITH_PYTHON)
     set(_envrc_content "${_envrc_content}"
diff --git a/CMakePresets.json b/CMakePresets.json
index 0b94463cb33..931a98bed5b 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -345,9 +345,6 @@
     {
       "name": "release",
       "configurePreset": "release",
-      "output": {
-        "outputOnFailure": true
-      },
       "filter": {
         "include": {
           "label": "default"
diff --git a/scripts/cmake/test/Test.cmake b/scripts/cmake/test/Test.cmake
index 6d0b42d44e6..ef7d99790e6 100644
--- a/scripts/cmake/test/Test.cmake
+++ b/scripts/cmake/test/Test.cmake
@@ -48,10 +48,7 @@ NotebookTest(
     TRUE
 )
 
-# output 25 kb of tailed logs on failure
-set(_ctest_parameter -T Test --force-new-ctest-process --output-on-failure
-                     --test-output-size-failed 25
-)
+set(_ctest_parameter -T Test --force-new-ctest-process)
 if(CMAKE_CONFIGURATION_TYPES)
     list(APPEND _ctest_parameter --build-config "$<CONFIGURATION>")
 endif()
-- 
GitLab