summaryrefslogtreecommitdiff
path: root/test/script/run-vader-tests
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-12-01 18:06:09 +0000
committerw0rp <devw0rp@gmail.com>2017-12-01 18:06:09 +0000
commit6650c9a901ae35e76754a389ee1ae67b6dfb754f (patch)
tree482ec6da545fe26415e788190ee9d01e3fd7d780 /test/script/run-vader-tests
parent499c1542727c7e79302529f61ffb2bbaecb08b68 (diff)
downloadale-6650c9a901ae35e76754a389ee1ae67b6dfb754f.zip
Break up the rest of the test script code into smaller files
Diffstat (limited to 'test/script/run-vader-tests')
-rwxr-xr-xtest/script/run-vader-tests7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/script/run-vader-tests b/test/script/run-vader-tests
index d28e1987..d5daec29 100755
--- a/test/script/run-vader-tests
+++ b/test/script/run-vader-tests
@@ -7,6 +7,7 @@ green='\033[0;32m'
nc='\033[0m'
verbose=0
quiet=0
+exit_code=0
while [ $# -ne 0 ]; do
case $1 in
@@ -109,12 +110,14 @@ if [[ $vim =~ ^neovim ]]; then
set -o pipefail
docker run -it -e VADER_OUTPUT_FILE=/dev/stderr "${docker_flags[@]}" \
"/vim-build/bin/$vim" -u test/vimrc \
- --headless "+Vader! $tests" | filter-vader-output | color-vader-output
+ --headless "+Vader! $tests" | filter-vader-output | color-vader-output || exit_code=$?
set +o pipefail
else
set -o pipefail
docker run -a stderr -e VADER_OUTPUT_FILE=/dev/stderr "${docker_flags[@]}" \
"/vim-build/bin/$vim" -u test/vimrc \
- "+Vader! $tests" 2>&1 | filter-vader-output | color-vader-output
+ "+Vader! $tests" 2>&1 | filter-vader-output | color-vader-output || exit_code=$?
set +o pipefail
fi
+
+exit "$exit_code"