Allow configuring of zsh binary to run integration tests against
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
require 'securerandom'
|
require 'securerandom'
|
||||||
|
|
||||||
class TerminalSession
|
class TerminalSession
|
||||||
|
ZSH_BIN = ENV['TEST_ZSH_BIN'] || 'zsh'
|
||||||
|
|
||||||
def initialize(width: 80, height: 24, prompt: '', term: 'xterm-256color')
|
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
|
end
|
||||||
|
|
||||||
def run_command(command)
|
def run_command(command)
|
||||||
|
|||||||
Reference in New Issue
Block a user