mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
DRY quitting vim after each test.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# TODO: exit with non-zero status code when tests fail.
|
||||
# TODO: quit vim after each testcase inside loop below (instead of in testcase).
|
||||
|
||||
rm -f *.out
|
||||
|
||||
for testcase in test*.vim; do
|
||||
vim -N -u NONE -S $testcase # testFoo.vim
|
||||
vim -N -u NONE -S $testcase -c 'quit!' # testFoo.vim
|
||||
testname=${testcase%.*} # testFoo
|
||||
name=${testname:4} # Foo
|
||||
name="$(tr '[:upper:]' '[:lower:]' <<< ${name:0:1})${name:1}" # foo
|
||||
|
||||
Reference in New Issue
Block a user