mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/test/unit.rb: simple ouput if verbose
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): use simple output if verbose mode and no job-status option given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
51a929c66d
commit
9c14029fce
1 changed files with 3 additions and 2 deletions
|
@ -65,7 +65,7 @@ module Test
|
|||
opts.version = MiniTest::Unit::VERSION
|
||||
|
||||
options[:retry] = true
|
||||
options[:job_status] ||= :replace if @tty
|
||||
options[:job_status] = nil
|
||||
|
||||
opts.on '-h', '--help', 'Display this help.' do
|
||||
puts opts
|
||||
|
@ -666,6 +666,7 @@ module Test
|
|||
end
|
||||
|
||||
def _prepare_run(suites, type)
|
||||
options[:job_status] ||= @tty && !options[:verbose] ? :replace : :normal
|
||||
case options[:color]
|
||||
when :always
|
||||
color = true
|
||||
|
@ -681,7 +682,7 @@ module Test
|
|||
else
|
||||
@failed_color = @reset_color = ""
|
||||
end
|
||||
if @options[:job_status] == :replace
|
||||
if color or @options[:job_status] == :replace
|
||||
@verbose = !options[:parallel]
|
||||
@output = StatusLineOutput.new(self)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue