Try to fix the tests on Windows

This commit is contained in:
w0rp 2018-06-20 22:41:19 +01:00 committed by GitHub
parent 864818a385
commit d7efb13203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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