summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-28 07:56:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-28 07:56:58 +0000
commitde7a47d1aac264be47583353739cc1a3dc138d91 (patch)
tree4870802eb3f3a585874aaec9b0d91c78de5ea6ee
parent49479c2dccbf5bac43278b85b3a28d4726e8ecbf (diff)
StatusLineOutput needs job_status to be :replace
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): StatusLineOutput needs job_status to be :replace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/test/unit.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b4318e71e68..6ab3eda2166 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 28 16:56:55 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb (Test::Unit::Runner#_prepare_run): StatusLineOutput
+ needs job_status to be :replace.
+
Mon May 28 13:35:33 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (do-install-*): fix dependencies. based on the patch by
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 3048adefac6..c44fbf8688b 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -683,6 +683,7 @@ module Test
@failed_color = @reset_color = ""
end
if color or @options[:job_status] == :replace
+ @options[:job_status] ||= :replace unless @verbose
@verbose = !options[:parallel]
@output = StatusLineOutput.new(self)
end