mirror of
https://github.com/neovim/neovim.git
synced 2026-02-08 21:08:47 +00:00
test: improve check for N/A tests (#37667)
The previous conditions don't handle the case where an entire file is N/A, which is the case for autocmd/signal_spec.lua on Windows.
This commit is contained in:
@@ -107,13 +107,13 @@ return function(options)
|
||||
local errorCount = 0
|
||||
|
||||
local naCheck = function(pending)
|
||||
if pending.name:find(' N/A[: ]') or pending.name:find(' N/A$') then
|
||||
if vim.list_contains(vim.split(pending.name, '[ :]'), 'N/A') then
|
||||
return true
|
||||
end
|
||||
if type(pending.message) ~= 'string' then
|
||||
return false
|
||||
end
|
||||
if pending.message:find(' N/A[: ]') or pending.message:find(' N/A$') then
|
||||
if vim.list_contains(vim.split(pending.message, '[ :]'), 'N/A') then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user