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

e*: Stop interpolating bin #179338

Merged
merged 17 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Formula/e/easyrpg-player.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def install
if OS.mac?
prefix.install "build/EasyRPG Player.app"
bin.write_exec_script "#{prefix}/EasyRPG Player.app/Contents/MacOS/EasyRPG Player"
mv "#{bin}/EasyRPG Player", "#{bin}/easyrpg-player"
mv "#{bin}/EasyRPG Player", bin/"easyrpg-player"
end
end

Expand Down
2 changes: 1 addition & 1 deletion Formula/e/ec2-ami-tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ def caveats
end

test do
assert_match version.to_s, shell_output("#{bin}/ec2-ami-tools-version")
assert_match version.to_s, shell_output(bin/"ec2-ami-tools-version")
end
end
2 changes: 1 addition & 1 deletion Formula/e/ekg2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ def install
end

test do
system "#{bin}/ekg2", "--help"
system bin/"ekg2", "--help"
end
end
2 changes: 1 addition & 1 deletion Formula/e/eless.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def install
test do
assert_match version.to_s, shell_output("#{bin}/eless -V")
expected = "This script is not supposed to send output to a pipe"
assert_equal expected, pipe_output("#{bin}/eless").chomp
assert_equal expected, pipe_output(bin/"eless").chomp
end
end
2 changes: 1 addition & 1 deletion Formula/e/elixir-ls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def install
"processId\":88075,\"rootUri\":null,\"capabilities\":{},\"trace\":\"ver" \
"bose\",\"workspaceFolders\":null}}\r\n"

output = pipe_output("#{bin}/elixir-ls", input, 0)
output = pipe_output(bin/"elixir-ls", input, 0)
assert_match "Content-Length", output
end
end
2 changes: 1 addition & 1 deletion Formula/e/ems-flasher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ def install
end

test do
system "#{bin}/ems-flasher", "--version"
system bin/"ems-flasher", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/e/epeg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def install
end

test do
system "#{bin}/epeg", "--width=1", "--height=1", test_fixtures("test.jpg"), "out.jpg"
system bin/"epeg", "--width=1", "--height=1", test_fixtures("test.jpg"), "out.jpg"
assert_predicate testpath/"out.jpg", :exist?
end
end
2 changes: 1 addition & 1 deletion Formula/e/eprover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def install
end

test do
system "#{bin}/eprover", "--help"
system bin/"eprover", "--help"
end
end
2 changes: 1 addition & 1 deletion Formula/e/epsilon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def install
end

test do
system "#{bin}/epsilon", "--version"
system bin/"epsilon", "--version"
end
end
4 changes: 2 additions & 2 deletions Formula/e/eralchemy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def install
sha256 "5c475bacd91a63490e1cbbd1741dc70a3435e98161b5b9458d195ee97f40a3fa"
end

system "#{bin}/eralchemy", "-v"
system bin/"eralchemy", "-v"
resource("er_example").stage do
system "#{bin}/eralchemy", "-i", "newsmeme.er", "-o", "test_eralchemy.pdf"
system bin/"eralchemy", "-i", "newsmeme.er", "-o", "test_eralchemy.pdf"
assert_predicate Pathname.pwd/"test_eralchemy.pdf", :exist?
end
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/e/erigon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def install
--log.dir.verbosity debug
--log.dir.path #{testpath}
]
system "#{bin}/erigon", *args, "init", "genesis.json"
system bin/"erigon", *args, "init", "genesis.json"
assert_predicate testpath/"erigon.log", :exist?
end
end
2 changes: 1 addition & 1 deletion Formula/e/erlang_ls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def install
end

test do
output = pipe_output("#{bin}/erlang_ls", nil, 1)
output = pipe_output(bin/"erlang_ls", nil, 1)
assert_match "Content-Length", output
end
end
2 changes: 1 addition & 1 deletion Formula/e/espeak.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ def install
end

test do
system "#{bin}/espeak", "This is a test for Espeak.", "-w", "out.wav"
system bin/"espeak", "This is a test for Espeak.", "-w", "out.wav"
end
end
2 changes: 1 addition & 1 deletion Formula/e/esphome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,6 @@ def install
return if Hardware::CPU.arm?

ENV.remove_macosxsdk if OS.mac?
system "#{bin}/esphome", "compile", "test.yaml"
system bin/"esphome", "compile", "test.yaml"
end
end
2 changes: 1 addition & 1 deletion Formula/e/exiftran.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ def install
end

test do
system "#{bin}/exiftran", "-9", "-o", "out.jpg", test_fixtures("test.jpg")
system bin/"exiftran", "-9", "-o", "out.jpg", test_fixtures("test.jpg")
end
end
2 changes: 1 addition & 1 deletion Formula/e/expect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def install
test do
assert_match "works", shell_output("echo works | #{bin}/timed-read 1")
assert_equal "", shell_output("{ sleep 3; echo fails; } | #{bin}/timed-read 1 2>&1")
assert_match "Done", pipe_output("#{bin}/expect", "exec true; puts Done")
assert_match "Done", pipe_output(bin/"expect", "exec true; puts Done")
end
end
2 changes: 1 addition & 1 deletion Formula/e/exult.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ def caveats
end

test do
system "#{bin}/exult", "-v"
system bin/"exult", "-v"
end
end
Loading