Skip to content

Commit

Permalink
"TERM=screen tmux..." to avoid TERM=unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Nov 2, 2020
1 parent 2b8d6e7 commit 5cf9c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def cleanup
test = File.dirname(__FILE__) + "/std_streams_spec.rb"
cmd = "rspec #{test} >#{OUTPUT} 2>&1"

tmux_out = `tmux -c '#{cmd}; echo \$? > #{RESULT}'`
puts "Tmux output:"
tmux_out = `TERM=screen tmux -c '#{cmd}; echo \$? > #{RESULT}'`
puts "Outside tmux output:"
puts tmux_out
if File.exist?(RESULT) && File.read(RESULT) == "0\n"
puts "Test succeeded."
Expand Down

0 comments on commit 5cf9c2a

Please sign in to comment.