[Groonga-commit] groonga/grntest at 8f0597a [master] windows: normalize new line

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 26 15:33:03 JST 2016


Kouhei Sutou	2016-04-26 15:33:03 +0900 (Tue, 26 Apr 2016)

  New Revision: 8f0597add352c47ad3c3e3f4d36fe2c8640eebc0
  https://github.com/groonga/grntest/commit/8f0597add352c47ad3c3e3f4d36fe2c8640eebc0

  Message:
    windows: normalize new line

  Modified files:
    lib/grntest/test-runner.rb

  Modified: lib/grntest/test-runner.rb (+5 -0)
===================================================================
--- lib/grntest/test-runner.rb    2016-04-26 15:10:54 +0900 (2481dde)
+++ lib/grntest/test-runner.rb    2016-04-26 15:33:03 +0900 (7464392)
@@ -515,7 +515,12 @@ http {
       result.actual = normalized_result
     end
 
+    def normalize_new_line(content)
+      content.gsub(/\r\n/, "\n")
+    end
+
     def normalize_raw_content(content)
+      content = normalize_new_line(content)
       "#{content}\n".force_encoding("ASCII-8BIT")
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index