Allow configuring of zsh binary to run integration tests against

This commit is contained in:
Eric Freese 2017-01-26 16:04:46 -07:00
parent 6c5cd42331
commit 2dbd261989
1 changed files with 3 additions and 1 deletions

View File

@ -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)