Allow configuring of zsh binary to run integration tests against
This commit is contained in:
parent
6c5cd42331
commit
2dbd261989
|
@ -1,8 +1,10 @@
|
|||
require 'securerandom'
|
||||
|
||||
class TerminalSession
|
||||
ZSH_BIN = ENV['TEST_ZSH_BIN'] || 'zsh'
|
||||
|
||||
def initialize(width: 80, height: 24, prompt: '', term: 'xterm-256color')
|
||||
tmux_command("new-session -d -x #{width} -y #{height} 'PS1=#{prompt} TERM=#{term} zsh -f'")
|
||||
tmux_command("new-session -d -x #{width} -y #{height} 'PS1=#{prompt} TERM=#{term} #{ZSH_BIN} -f'")
|
||||
end
|
||||
|
||||
def run_command(command)
|
||||
|
|
Loading…
Reference in New Issue