mirror of
https://github.com/neovim/neovim.git
synced 2026-08-17 21:44:47 -05:00
test: fail CI if .nvimlog is not empty (#37470)
This will prevent adding passing tests which logs errors in .nvimlog. Close #28323 Related: https://github.com/neovim/neovim/pull/27660#issuecomment-2035738597 Co-authored-by: dundargoc <gocdundar@gmail.com>
This commit is contained in:
@@ -99,3 +99,12 @@ if(res)
|
||||
|
||||
message(FATAL_ERROR "${TEST_TYPE} tests failed with error: ${res}")
|
||||
endif()
|
||||
|
||||
if(CI_BUILD)
|
||||
file(SIZE $ENV{NVIM_LOG_FILE} FILE_SIZE)
|
||||
if(NOT ${FILE_SIZE} MATCHES "^0$")
|
||||
file(READ $ENV{NVIM_LOG_FILE} out)
|
||||
message(STATUS "$NVIM_LOG_FILE: $ENV{NVIM_LOG_FILE}\n${out}")
|
||||
message(FATAL_ERROR "$NVIM_LOG_FILE is not empty")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user