Skip to content

Commit

Permalink
Merge branch 'limit-ctest-output' into 'master'
Browse files Browse the repository at this point in the history
[ctest,ci] Limit output of failed tests to 25 kB

See merge request ogs/ogs!4993
  • Loading branch information
bilke committed May 6, 2024
2 parents e216ba2 + 1c296ed commit aa8498a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/cmake/test/Test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ NotebookTest(
TRUE
)

set(_ctest_parameter -T Test --force-new-ctest-process --output-on-failure)
# 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
)
if(CMAKE_CONFIGURATION_TYPES)
list(APPEND _ctest_parameter --build-config "$<CONFIGURATION>")
endif()
Expand Down

0 comments on commit aa8498a

Please sign in to comment.