Use gloabl for test args as i always use a basedir now
This commit is contained in:
parent
8c4112cd1f
commit
58a95402c4
1 changed files with 8 additions and 3 deletions
|
|
@ -90,7 +90,9 @@ function! s:RunTestUnderCursor()
|
||||||
let l:cwd = getcwd()
|
let l:cwd = getcwd()
|
||||||
execute 'lcd ' . s:root_dir
|
execute 'lcd ' . s:root_dir
|
||||||
try
|
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
|
finally
|
||||||
execute 'lcd ' . l:cwd
|
execute 'lcd ' . l:cwd
|
||||||
endtry
|
endtry
|
||||||
|
|
@ -101,7 +103,9 @@ function! s:RunTest()
|
||||||
let l:cwd = getcwd()
|
let l:cwd = getcwd()
|
||||||
execute 'lcd ' . s:root_dir
|
execute 'lcd ' . s:root_dir
|
||||||
try
|
try
|
||||||
execute s:make_cmd . ' ' . get( b:, 'test_args', '' ) . ' %:p:t'
|
execute s:make_cmd . ' '
|
||||||
|
\ . get( g:, 'vimspector_test_args', '' )
|
||||||
|
\ . ' %:p:t'
|
||||||
finally
|
finally
|
||||||
execute 'lcd ' . l:cwd
|
execute 'lcd ' . l:cwd
|
||||||
endtry
|
endtry
|
||||||
|
|
@ -112,7 +116,8 @@ function! s:RunAllTests()
|
||||||
let l:cwd = getcwd()
|
let l:cwd = getcwd()
|
||||||
execute 'lcd ' . s:root_dir
|
execute 'lcd ' . s:root_dir
|
||||||
try
|
try
|
||||||
execute s:make_cmd . ' ' . get( b:, 'test_args', '' )
|
execute s:make_cmd . ' '
|
||||||
|
\ . get( g:, 'vimspector_test_args', '' )
|
||||||
finally
|
finally
|
||||||
execute 'lcd ' . l:cwd
|
execute 'lcd ' . l:cwd
|
||||||
endtry
|
endtry
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue