If no pane is specified, test suite now tries to open a detached 'test' tmux session

This commit is contained in:
Wryn Wagner 2020-10-27 15:15:29 -06:00
parent 9f9f8c6d93
commit 7e9c67b320

View File

@ -3,7 +3,7 @@ let tmuxTestSessionName = "test"
let defaultTmuxPaneId = g:tmuxTestSessionName . ":0.0"
function InitializeTmuxTestSession()
silent execute '!tmux new -ds ' . g:tmuxTestSessionName . ' -c $HOME >/dev/null 2>&1'
call system("tmux new -ds " . g:tmuxTestSessionName . " -c $HOME >/dev/null 2>&1")
endfunction
@ -13,7 +13,7 @@ endfunction
function TmuxTest(shellCommand, paneId = g:defaultTmuxPaneId)
if a:paneId == g:defaultTmuxPaneId
call InitializeTmuxTestSession()
silent call InitializeTmuxTestSession()
endif
call system("tmux send-keys -t " . a:paneId . " '" . a:shellCommand . "' Enter")