Kouhei Sutou
null+****@clear*****
Mon Aug 19 15:03:36 JST 2013
Kouhei Sutou 2013-08-19 15:03:36 +0900 (Mon, 19 Aug 2013) New Revision: e244604500f2cf83001ddf308bab53eea62b0257 https://github.com/groonga/grntest/commit/e244604500f2cf83001ddf308bab53eea62b0257 Message: Pass Groonga::Command instead of String Modified files: lib/grntest/executors/http-executor.rb lib/grntest/test-runner.rb Modified: lib/grntest/executors/http-executor.rb (+10 -1) =================================================================== --- lib/grntest/executors/http-executor.rb 2013-08-19 14:52:07 +0900 (9e2eff7) +++ lib/grntest/executors/http-executor.rb 2013-08-19 15:03:36 +0900 (9e43d45) @@ -43,7 +43,7 @@ module Grntest def ensure_groonga_ready n_retried = 0 begin - send_command("status") + send_command(command("status")) rescue SystemCallError n_retried += 1 sleep(0.1) @@ -52,9 +52,18 @@ module Grntest end end + def shutdown + send_command(command("shutdown")) + end + def create_sub_executor(context) self.class.new(@host, @port, context) end + + private + def command(command_line) + Groonga::Command::Parser.parse(command_line) + end end end end Modified: lib/grntest/test-runner.rb (+1 -1) =================================================================== --- lib/grntest/test-runner.rb 2013-08-19 14:52:07 +0900 (df44a24) +++ lib/grntest/test-runner.rb 2013-08-19 15:03:36 +0900 (8c65b75) @@ -299,7 +299,7 @@ EOC end yield(executor) ensure - executor.send_command("shutdown") + executor.shutdown wait_groonga_http_shutdown(pid_file_path) end ensure -------------- next part -------------- HTML����������������������������...Download