HBASE-2815 not able to run the test suite in background because TestShell gets suspended on tty output

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@978973 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-07-25 03:48:58 +00:00
parent 04bf6f48e4
commit e60312c1bd
2 changed files with 5 additions and 7 deletions

View File

@ -454,6 +454,8 @@ Release 0.21.0 - Unreleased
becomes invalid (Benôit Sigoure via Stack)
HBASE-2876 HBase hbck: false positive error reported for parent regions
that are in offline state in meta after a split
HBASE-2815 not able to run the test suite in background because TestShell
gets suspended on tty output (Alexey Kovyrin via Stack)
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -30,13 +30,9 @@ module Shell
end
def refresh_width()
@max_width = Java::jline.Terminal.getTerminal().getTerminalWidth()
# the above doesn't work in some terminals
# (such as shell running within emacs)
if @max_width == 0
@max_width = 100
end
@max_width = Java::jline.Terminal.getTerminal().getTerminalWidth() if $stdout.tty?
# the above doesn't work in some terminals (such as shell running within emacs)
@max_width = 100 if @max_width.to_i.zero?
end
# Takes an output stream and a print width.