mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Fail RunUnittests if we get a non-zero exit code from busted.
This commit is contained in:
parent
7d413050ba
commit
f9aeb219c1
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user