[Groonga-commit] groonga/grntest at 5057506 [master] Fix new line handling

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sun Aug 17 16:37:24 JST 2014


Kouhei Sutou	2014-08-17 16:37:24 +0900 (Sun, 17 Aug 2014)

  New Revision: 5057506c84166f72005b6dc4b196f91511ac4054
  https://github.com/groonga/grntest/commit/5057506c84166f72005b6dc4b196f91511ac4054

  Message:
    Fix new line handling
    
    Needed new lines were removed...

  Modified files:
    lib/grntest/executors/base-executor.rb

  Modified: lib/grntest/executors/base-executor.rb (+2 -2)
===================================================================
--- lib/grntest/executors/base-executor.rb    2014-08-16 22:17:53 +0900 (abede82)
+++ lib/grntest/executors/base-executor.rb    2014-08-17 16:37:24 +0900 (4630c4e)
@@ -272,7 +272,7 @@ module Grntest
       end
 
       def extract_important_messages(log)
-        important_messages = ""
+        important_messages = []
         log.each_line do |line|
           timestamp, log_level, message = line.split(/\|\s*/, 3)
           _ = timestamp # suppress warning
@@ -281,7 +281,7 @@ module Grntest
           next if backtrace_log_message?(message)
           important_messages << "\#|#{log_level}| #{message}"
         end
-        important_messages
+        important_messages.join("\n")
       end
 
       def read_all_readable_content(output, options={})
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る