mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	test: don't search entire repo for files
Searching the entire repo for a directory named "contrib" causes failure if there happens to be another subdirectory with the name "contrib". Instead, point directly to the correct contrib directory.
This commit is contained in:
		| @@ -260,7 +260,7 @@ describe('vim.fs', function() | |||||||
|         ]], test_source_path), |         ]], test_source_path), | ||||||
|         exec_lua([[ |         exec_lua([[ | ||||||
|           local dir = ... |           local dir = ... | ||||||
|           local opts = { path = dir, limit = math.huge } |           local opts = { path = dir .. "/contrib", limit = math.huge } | ||||||
|           return vim.tbl_map(vim.fs.basename, vim.fs.find(function(_, d) return d:match('[\\/]contrib$') end, opts)) |           return vim.tbl_map(vim.fs.basename, vim.fs.find(function(_, d) return d:match('[\\/]contrib$') end, opts)) | ||||||
|         ]], test_source_path)) |         ]], test_source_path)) | ||||||
|     end) |     end) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 dundargoc
					dundargoc