diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-11 09:02:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-11 09:02:06 +0000 |
commit | dea582458af3ac34fcaad7fd8de46560c012fb3b (patch) | |
tree | 688f7a49c5d6fadccb98d6abd5c5cfd0b1550df0 /sample/test.rb | |
parent | c9e4da2afc7d8c3db78e072cbef81b06effc7e91 (diff) | |
download | ruby-dea582458af3ac34fcaad7fd8de46560c012fb3b.tar.gz |
sample/test.rb: fix standalone
* sample/test.rb (Progress#initialize): no rotators when STDOUT is
also tty, that is directly invoked but not from tool/rubytest.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rwxr-xr-x | sample/test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb index 0e59f27bc0..26cf0a1d97 100755 --- a/sample/test.rb +++ b/sample/test.rb @@ -17,7 +17,7 @@ class Progress @quiet = true end end - @tty = STDERR.tty? && /dumb/ !~ ENV["TERM"] + @tty = STDERR.tty? && !STDOUT.tty? && /dumb/ !~ ENV["TERM"] case @color when nil @color = @tty |