From d7efb13203a1ebec24c963ff2f7c9dc99a4ea2a8 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 20 Jun 2018 22:41:19 +0100 Subject: Try to fix the tests on Windows --- test/command_callback/test_elixir_mix_command_callbacks.vader | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/command_callback/test_elixir_mix_command_callbacks.vader b/test/command_callback/test_elixir_mix_command_callbacks.vader index 22d35eeb..67785881 100644 --- a/test/command_callback/test_elixir_mix_command_callbacks.vader +++ b/test/command_callback/test_elixir_mix_command_callbacks.vader @@ -13,13 +13,9 @@ Before: function! GetCommand(buffer) abort let l:command = ale_linters#elixir#mix#GetCommand(a:buffer) - let l:split_command = split(l:command, 'MIX_BUILD_PATH=[^ ]*\s') - - return l:split_command[0] . 'MIX_BUILD_PATH=TEMP' . l:split_command[1] + return substitute(l:command, 'MIX_BUILD_PATH=[^ ]\+', 'MIX_BUILD_PATH=TEMP', '') endfunction - - After: Restore -- cgit v1.2.3