From 58a95402c4056ffdae2ae5d102dda60770b66aa0 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Sun, 17 May 2020 19:25:12 +0100 Subject: [PATCH] Use gloabl for test args as i always use a basedir now --- compiler/vimspector_test.vim | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/compiler/vimspector_test.vim b/compiler/vimspector_test.vim index a347f3b..18ef9ae 100644 --- a/compiler/vimspector_test.vim +++ b/compiler/vimspector_test.vim @@ -90,7 +90,9 @@ function! s:RunTestUnderCursor() let l:cwd = getcwd() execute 'lcd ' . s:root_dir try - execute s:make_cmd . ' ' . get( b:, 'test_args', '' ) . ' ' . l:test_arg + execute s:make_cmd . ' ' + \ . get( g:, 'vimspector_test_args', '' ) . ' ' + \ . l:test_arg finally execute 'lcd ' . l:cwd endtry @@ -101,7 +103,9 @@ function! s:RunTest() let l:cwd = getcwd() execute 'lcd ' . s:root_dir try - execute s:make_cmd . ' ' . get( b:, 'test_args', '' ) . ' %:p:t' + execute s:make_cmd . ' ' + \ . get( g:, 'vimspector_test_args', '' ) + \ . ' %:p:t' finally execute 'lcd ' . l:cwd endtry @@ -112,7 +116,8 @@ function! s:RunAllTests() let l:cwd = getcwd() execute 'lcd ' . s:root_dir try - execute s:make_cmd . ' ' . get( b:, 'test_args', '' ) + execute s:make_cmd . ' ' + \ . get( g:, 'vimspector_test_args', '' ) finally execute 'lcd ' . l:cwd endtry