1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

lib/test/unit.rb: not override job_status option

* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): not override
  job_status option if no tty.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-05-21 07:36:58 +00:00
parent 05b26a85b8
commit e7ce771354

View file

@ -666,7 +666,7 @@ module Test
end
def _prepare_run(suites, type)
options[:job_status] ||= @tty && !options[:verbose] ? :replace : :normal
options[:job_status] ||= :replace if @tty && !@verbose
case options[:color]
when :always
color = true