[Groonga-commit] groonga/groonga-query-log at 0e2d1fb [master] run-regression-test: flush explicitly

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Sep 13 10:27:14 JST 2018


Kouhei Sutou	2018-09-13 10:27:14 +0900 (Thu, 13 Sep 2018)

  Revision: 0e2d1fb0b0895be011fb62b2c19614e1453de325
  https://github.com/groonga/groonga-query-log/commit/0e2d1fb0b0895be011fb62b2c19614e1453de325

  Message:
    run-regression-test: flush explicitly

  Modified files:
    lib/groonga-query-log/command/run-regression-test.rb

  Modified: lib/groonga-query-log/command/run-regression-test.rb (+11 -0)
===================================================================
--- lib/groonga-query-log/command/run-regression-test.rb    2018-09-13 10:15:49 +0900 (97578af)
+++ lib/groonga-query-log/command/run-regression-test.rb    2018-09-13 10:27:14 +0900 (d63ba5e)
@@ -228,7 +228,16 @@ module GroongaQueryLog
                           server_options)
       end
 
+      module Loggable
+        def puts(*args)
+          $stdout.puts(*args)
+          $stdout.flush
+        end
+      end
+
       class GroongaServer
+        include Loggable
+
         attr_reader :host, :port
         def initialize(groonga, groonga_options, database_path, options)
           @input_directory = options[:input_directory] || Pathname.new(".")
@@ -369,6 +378,8 @@ module GroongaQueryLog
       end
 
       class Tester
+        include Loggable
+
         def initialize(old, new, options)
           @old = old
           @new = new
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180913/85218362/attachment-0001.htm 



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