aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-08-12 14:56:12 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-08-28 14:07:31 -0300
commitb744073fae555ca362bcd40e47c7ce3849206e50 (patch)
treeadde222aedde4d7150ba2afcdcc511354491c85b
parent7f9ec6c04f3949e6d666c1586efc20a4a79be257 (diff)
downloadrneovim-b744073fae555ca362bcd40e47c7ce3849206e50.tar.gz
rneovim-b744073fae555ca362bcd40e47c7ce3849206e50.tar.bz2
rneovim-b744073fae555ca362bcd40e47c7ce3849206e50.zip
test: Remove cleanup function definition from run-api-tests.exp
This function is now injected automatically when running the python-client tests
-rwxr-xr-xscripts/run-api-tests.exp37
1 files changed, 0 insertions, 37 deletions
diff --git a/scripts/run-api-tests.exp b/scripts/run-api-tests.exp
index b9d37ca903..6209a77cfc 100755
--- a/scripts/run-api-tests.exp
+++ b/scripts/run-api-tests.exp
@@ -20,43 +20,6 @@ set nvim_id $spawn_id
# Reset function that can be invoked by test runners to put nvim in a cleaner
# state
send {
-:function BeforeEachTest()
- set all&
- let &initpython = 'python -c "import neovim; neovim.start_host()"'
- redir => groups
- silent augroup
- redir END
- for group in split(groups)
- exe 'augroup '.group
- autocmd!
- augroup END
- endfor
- autocmd!
- tabnew
- let curbufnum = eval(bufnr('%'))
- redir => buflist
- silent ls!
- redir END
- let bufnums = []
- for buf in split(buflist, '\n')
- let bufnum = eval(split(buf, '[ u]')[0])
- if bufnum != curbufnum
- call add(bufnums, bufnum)
- endif
- endfor
- if len(bufnums) > 0
- exe 'silent bwipeout! '.join(bufnums, ' ')
- endif
- silent tabonly
- for k in keys(g:)
- exe 'unlet g:'.k
- endfor
- filetype plugin indent off
- mapclear
- mapclear!
- abclear
- comclear
-endfunction
:echo "read"."y"
}
# wait until nvim is ready