From 3c5b6d1825144e3d955787613f3df9769e383091 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 1 Jul 2018 12:06:36 +0100 Subject: Run Vint and custom checks together with just --linters-only --- run-tests | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) (limited to 'run-tests') diff --git a/run-tests b/run-tests index 00983c38..5a9272cb 100755 --- a/run-tests +++ b/run-tests @@ -27,8 +27,7 @@ quiet_flag='' run_neovim_02_tests=1 run_neovim_03_tests=1 run_vim_tests=1 -run_vint=1 -run_custom_checks=1 +run_linters=1 while [ $# -ne 0 ]; do case $1 in @@ -42,51 +41,31 @@ while [ $# -ne 0 ]; do ;; --neovim-only) run_vim_tests=0 - run_vint=0 - run_custom_checks=0 + run_linters=0 shift ;; --neovim-02-only) run_neovim_03_tests=0 run_vim_tests=0 - run_vint=0 - run_custom_checks=0 + run_linters=0 shift ;; --neovim-03-only) run_neovim_02_tests=0 run_vim_tests=0 - run_vint=0 - run_custom_checks=0 + run_linters=0 shift ;; --vim-only) run_neovim_02_tests=0 run_neovim_03_tests=0 - run_vint=0 - run_custom_checks=0 + run_linters=0 shift ;; - --no-vint) - run_vint=0 - shift - ;; - --vint-only) - run_vim_tests=0 - run_neovim_02_tests=0 - run_neovim_03_tests=0 - run_custom_checks=0 - shift - ;; - --no-custom-checks) - run_custom_checks=0 - shift - ;; - --custom-checks-only) + --linters-only) run_vim_tests=0 run_neovim_02_tests=0 run_neovim_03_tests=0 - run_vint=0 shift ;; --) @@ -110,8 +89,7 @@ if [ $# -ne 0 ]; then tests="$*" # Don't run other tools when targeting tests. - run_custom_checks=0 - run_vint=0 + run_linters=0 fi # Delete .swp files in the test directory, which cause Vim 8 to hang. @@ -138,14 +116,12 @@ for vim in $(docker run --rm "$DOCKER_RUN_IMAGE" ls /vim-build/bin | grep '^neov fi done -if ((run_vint)); then +if ((run_linters)); then echo "Starting Vint..." file_number=$((file_number+1)) test/script/run-vint > "$output_dir/$file_number" 2>&1 & pid_list="$pid_list $!" -fi -if ((run_custom_checks)); then echo "Starting Custom checks..." file_number=$((file_number+1)) test/script/custom-checks &> "$output_dir/$file_number" 2>&1 & -- cgit v1.2.3