From 8f990b8e496833e89ec109c58494f72e4885b4ac Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Fri, 15 Oct 2021 15:48:25 +0900 Subject: [PATCH] test: use more appropriate path for windows Instead of directly specifying "ruby", it is preferable to use ServerEngine.ruby_bin_path. Signed-off-by: Kentaro Hayashi --- test/command/test_cat.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/command/test_cat.rb b/test/command/test_cat.rb index 0e06a63e7e..d0a2f60d0d 100644 --- a/test/command/test_cat.rb +++ b/test/command/test_cat.rb @@ -69,7 +69,7 @@ def create_chunk(primary, metadata, es) def test_cat_json d = create_driver d.run(expect_records: 1) do - Open3.pipeline_w("ruby #{FLUENT_CAT_COMMAND} --port #{@port} json") do |stdin| + Open3.pipeline_w("#{ServerEngine.ruby_bin_path} #{FLUENT_CAT_COMMAND} --port #{@port} json") do |stdin| stdin.puts('{"key":"value"}') stdin.close end @@ -86,7 +86,7 @@ def test_cat_secondary_file path = d.instance.write(@chunk) d = create_driver d.run(expect_records: 1) do - Open3.pipeline_w("ruby #{FLUENT_CAT_COMMAND} --port #{@port} --format msgpack secondary") do |stdin| + Open3.pipeline_w("#{ServerEngine.ruby_bin_path} #{FLUENT_CAT_COMMAND} --port #{@port} --format msgpack secondary") do |stdin| stdin.write(File.read(path)) stdin.close end