From 889c2cfd3dbfe5b651e4d990e42ede560b6ddcda Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sat, 21 Sep 2024 14:56:06 -0400 Subject: [PATCH] embulk: fix test --- Formula/e/embulk.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Formula/e/embulk.rb b/Formula/e/embulk.rb index 8b95b23d6dc6..70f9395ee0bb 100644 --- a/Formula/e/embulk.rb +++ b/Formula/e/embulk.rb @@ -42,7 +42,7 @@ def install sha256 "ce537f21a2cfc34cf91fc834d8d1c663c6f3b5bca57cacd45fd4c47ede71c303" end testpath.install resource("jruby-complete") - jruby = "jruby=file://#{testpath}/jruby-complete-9.4.8.0.jar" + jruby = "jruby=file://#{testpath}/jruby-complete-#{resource("jruby-complete").version}.jar" (testpath/"config.yml").write <<~EOS in: @@ -61,7 +61,9 @@ def install type: stdout EOS - system bin/"embulk", "-X", jruby, "gem", "install", "embulk", "embulk-input-http", "msgpack" + ENV["GEM_HOME"] = testpath/"gems" + system bin/"embulk", "-X", jruby, "gem", "install", "embulk", "--version", version.to_s + system bin/"embulk", "-X", jruby, "gem", "install", "embulk-input-http", "msgpack" assert_match <<~EOS.chomp, shell_output("#{bin}/embulk -X #{jruby} preview config.yml") +-------------+-----------------------------+--------------+----------------+ | number:long | command_run:string | count:string | percent:double |