From b744073fae555ca362bcd40e47c7ce3849206e50 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Tue, 12 Aug 2014 14:56:12 -0300 Subject: test: Remove cleanup function definition from run-api-tests.exp This function is now injected automatically when running the python-client tests --- scripts/run-api-tests.exp | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'scripts') 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 -- cgit