mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Fail RunUnittests if we get a non-zero exit code from busted.
This commit is contained in:
@@ -6,4 +6,9 @@ set(ENV{TEST_INCLUDES} ${TEST_INCLUDES})
|
|||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${BUSTED_PRG} -l ${LUAJIT_PRG} -o ${BUSTED_OUTPUT_TYPE}
|
COMMAND ${BUSTED_PRG} -l ${LUAJIT_PRG} -o ${BUSTED_OUTPUT_TYPE}
|
||||||
--pattern=.moon ${TEST_DIR}
|
--pattern=.moon ${TEST_DIR}
|
||||||
WORKING_DIRECTORY ${WORKING_DIR})
|
WORKING_DIRECTORY ${WORKING_DIR}
|
||||||
|
RESULT_VARIABLE res)
|
||||||
|
|
||||||
|
if(NOT res EQUAL 0)
|
||||||
|
message(FATAL_ERROR "Unit tests failed.")
|
||||||
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user