Skip to content

Commit

Permalink
fix(ci): Output the reason why an integration test failed if it faile…
Browse files Browse the repository at this point in the history
…d because of a segfault (endless-sky#9678)
  • Loading branch information
quyykk authored Jan 16, 2024
1 parent 6d5f6d0 commit 2f7244c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/RunIntegrationTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 2f7244c

Please sign in to comment.