summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-11 09:02:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-11 09:02:06 +0000
commitdea582458af3ac34fcaad7fd8de46560c012fb3b (patch)
tree688f7a49c5d6fadccb98d6abd5c5cfd0b1550df0 /sample
parentc9e4da2afc7d8c3db78e072cbef81b06effc7e91 (diff)
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')
-rwxr-xr-xsample/test.rb2
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