diff options
author | Horacio Sanson <hsanson@gmail.com> | 2022-04-01 21:17:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 13:17:15 +0100 |
commit | 0f55d371e92160812ff0a57b5f48f2010a420f0c (patch) | |
tree | 5a291b2decb6fd3014126a468c005c2cbf524972 /test/script/run-vader-tests | |
parent | e81f005c78193b9475b359751e9fae21f65c1c2b (diff) | |
download | ale-0f55d371e92160812ff0a57b5f48f2010a420f0c.zip |
Add neovim 0.6 to run-tests (#3998)
* Update test scripts
* Remove neovim 0.3 and 0.4
* Add neovim 0.6.1
Co-authored-by: Horacio Sanson <horacio@allm.inc>
Co-authored-by: w0rp <devw0rp@gmail.com>
Diffstat (limited to 'test/script/run-vader-tests')
-rwxr-xr-x | test/script/run-vader-tests | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/script/run-vader-tests b/test/script/run-vader-tests index c8cdfde4..15a4a91e 100755 --- a/test/script/run-vader-tests +++ b/test/script/run-vader-tests @@ -36,6 +36,22 @@ done vim="$1" tests="$2" + +echo "$vim" + +case $vim in + neovim-v0.2*) + headless='' + ;; + # Neovim 0.6+ requires headless argument to load Vader tests. + neovim*) + headless='--headless' + ;; + *) + headless='' + ;; +esac + # This file will be used to track if tests ran or not. # We can't use a variable, because we need to set a value in a sub-shell. run_file="$(mktemp -t tests_ran.XXXXXXXX)" @@ -132,7 +148,7 @@ while [ "$tries" -lt 5 ]; do exit_code=0 set -o pipefail docker run -a stderr -e VADER_OUTPUT_FILE=/dev/stderr "${docker_flags[@]}" \ - "/vim-build/bin/$vim" -u test/vimrc \ + "/vim-build/bin/$vim" -u test/vimrc ${headless} \ "+Vader! $tests" 2>&1 | filter-vader-output | color-vader-output || exit_code=$? set +o pipefail |