From 2f7244ce46ff0b67318a34d5e2548c8390223a5d Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 17 Jan 2024 00:16:42 +0100 Subject: [PATCH] fix(ci): Output the reason why an integration test failed if it failed because of a segfault (#9678) --- tests/integration/RunIntegrationTest.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/RunIntegrationTest.cmake b/tests/integration/RunIntegrationTest.cmake index 3c2820fa98d1..e13ecc6352eb 100644 --- a/tests/integration/RunIntegrationTest.cmake +++ b/tests/integration/RunIntegrationTest.cmake @@ -12,5 +12,6 @@ execute_process(COMMAND $ENV{ES_INTEGRATION_PREFIX} "${ES}" --config "${TEST_CON RESULT_VARIABLE TEST_RESULT) if(TEST_RESULT) - message(FATAL_ERROR "Integration test failed with:\n${TEST_OUTPUT}") + string(STRIP "${TEST_OUTPUT}" TEST_OUTPUT_STRIPPED) + message(FATAL_ERROR "Integration test failed with '${TEST_RESULT}':\n${TEST_OUTPUT_STRIPPED}") endif()