Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embulk: fix test #191470

Merged
merged 1 commit into from
Sep 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Formula/e/embulk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 |
Expand Down
Loading