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()