diff --git a/Formula/t/tag.rb b/Formula/t/tag.rb index 8269cdc0bbd8c..4842f0e402217 100644 --- a/Formula/t/tag.rb +++ b/Formula/t/tag.rb @@ -32,7 +32,7 @@ def install test_tag = "test_tag" test_file = Pathname.pwd+"test_file" touch test_file - system "#{bin}/tag", "--add", test_tag, test_file + system bin/"tag", "--add", test_tag, test_file assert_equal test_tag, `#{bin}/tag --list --no-name #{test_file}`.chomp end end diff --git a/Formula/t/tailor.rb b/Formula/t/tailor.rb index 5b1000c501c1b..3f4b55b3c4c42 100644 --- a/Formula/t/tailor.rb +++ b/Formula/t/tailor.rb @@ -20,6 +20,6 @@ def install test do (testpath/"Test.swift").write "import Foundation\n" - system "#{bin}/tailor", testpath/"Test.swift" + system bin/"tailor", testpath/"Test.swift" end end diff --git a/Formula/t/tailwindcss-language-server.rb b/Formula/t/tailwindcss-language-server.rb index 14dd7763ba655..d435b60c07247 100644 --- a/Formula/t/tailwindcss-language-server.rb +++ b/Formula/t/tailwindcss-language-server.rb @@ -50,7 +50,7 @@ def install } JSON - Open3.popen3("#{bin}/tailwindcss-language-server", "--stdio") do |stdin, stdout| + Open3.popen3(bin/"tailwindcss-language-server", "--stdio") do |stdin, stdout| stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}" sleep 3 assert_match(/^Content-Length: \d+/i, stdout.readline) diff --git a/Formula/t/tal.rb b/Formula/t/tal.rb index 41bd595a0615d..b770f1a4b5ba6 100644 --- a/Formula/t/tal.rb +++ b/Formula/t/tal.rb @@ -30,6 +30,6 @@ def install end test do - system "#{bin}/tal", "/etc/passwd" + system bin/"tal", "/etc/passwd" end end diff --git a/Formula/t/tarlz.rb b/Formula/t/tarlz.rb index 9c0b590f074de..6d253b8de8da5 100644 --- a/Formula/t/tarlz.rb +++ b/Formula/t/tarlz.rb @@ -44,7 +44,7 @@ def install system bin/"tarlz", "-C", testpath, "-cf", lzipfilepath, "source" assert_predicate lzipfilepath, :exist? - system "#{bin}/tarlz", "-C", dpath, "-xf", lzipfilepath + system bin/"tarlz", "-C", dpath, "-xf", lzipfilepath assert_equal "TEST CONTENT", dtestfilepath.read end end diff --git a/Formula/t/task.rb b/Formula/t/task.rb index e5e03be223704..0ac76e2e41193 100644 --- a/Formula/t/task.rb +++ b/Formula/t/task.rb @@ -46,7 +46,7 @@ def install test do touch testpath/".taskrc" - system "#{bin}/task", "add", "Write", "a", "test" + system bin/"task", "add", "Write", "a", "test" assert_match "Write a test", shell_output("#{bin}/task list") end end diff --git a/Formula/t/taskd.rb b/Formula/t/taskd.rb index a15fe4a8c41ca..c185e0fa29888 100644 --- a/Formula/t/taskd.rb +++ b/Formula/t/taskd.rb @@ -33,6 +33,6 @@ def install end test do - system "#{bin}/taskd", "init", "--data", testpath + system bin/"taskd", "init", "--data", testpath end end diff --git a/Formula/t/tasksh.rb b/Formula/t/tasksh.rb index 869091e9b8b62..91cf91c6f5d49 100644 --- a/Formula/t/tasksh.rb +++ b/Formula/t/tasksh.rb @@ -41,8 +41,8 @@ def install end test do - system "#{bin}/tasksh", "--version" + system bin/"tasksh", "--version" (testpath/".taskrc").write "data.location=#{testpath}/.task\n" - assert_match "Created task 1.", pipe_output("#{bin}/tasksh", "add Test Task", 0) + assert_match "Created task 1.", pipe_output(bin/"tasksh", "add Test Task", 0) end end diff --git a/Formula/t/tcping.rb b/Formula/t/tcping.rb index 46a5e269776b8..2fe5ee236a82c 100644 --- a/Formula/t/tcping.rb +++ b/Formula/t/tcping.rb @@ -29,6 +29,6 @@ def install end test do - system "#{bin}/tcping", "www.google.com", "80" + system bin/"tcping", "www.google.com", "80" end end diff --git a/Formula/t/tcpkali.rb b/Formula/t/tcpkali.rb index 3cf99e4dac542..21f415cf9ab6a 100644 --- a/Formula/t/tcpkali.rb +++ b/Formula/t/tcpkali.rb @@ -31,6 +31,6 @@ def install end test do - system "#{bin}/tcpkali", "-l1237", "-T0.5", "127.1:1237" + system bin/"tcpkali", "-l1237", "-T0.5", "127.1:1237" end end diff --git a/Formula/t/tcpsplit.rb b/Formula/t/tcpsplit.rb index 6094c26f96a1c..b4c6696fb58c9 100644 --- a/Formula/t/tcpsplit.rb +++ b/Formula/t/tcpsplit.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/tcpsplit", "--version" + system bin/"tcpsplit", "--version" end end diff --git a/Formula/t/td.rb b/Formula/t/td.rb index 5ffbde2763fdd..99b59b338848c 100644 --- a/Formula/t/td.rb +++ b/Formula/t/td.rb @@ -27,7 +27,7 @@ def install test do (testpath/".todos").write "[]\n" - system "#{bin}/td", "a", "todo of test" + system bin/"td", "a", "todo of test" todos = (testpath/".todos").read assert_match "todo of test", todos assert_match "pending", todos diff --git a/Formula/t/telegraf.rb b/Formula/t/telegraf.rb index a787d36b2d7c7..e7cf83474d9fb 100644 --- a/Formula/t/telegraf.rb +++ b/Formula/t/telegraf.rb @@ -26,7 +26,7 @@ class Telegraf < Formula def install ldflags = "-s -w -X github.com/influxdata/telegraf/internal.Version=#{version}" system "go", "build", *std_go_args(ldflags:), "./cmd/telegraf" - (etc/"telegraf.conf").write Utils.safe_popen_read("#{bin}/telegraf", "config") + (etc/"telegraf.conf").write Utils.safe_popen_read(bin/"telegraf", "config") end def post_install @@ -45,7 +45,7 @@ def post_install test do assert_match version.to_s, shell_output("#{bin}/telegraf --version") (testpath/"config.toml").write shell_output("#{bin}/telegraf -sample-config") - system "#{bin}/telegraf", "-config", testpath/"config.toml", "-test", + system bin/"telegraf", "-config", testpath/"config.toml", "-test", "-input-filter", "cpu:mem" end end diff --git a/Formula/t/termius.rb b/Formula/t/termius.rb index c1d2e211008c4..2ee63026b9e00 100644 --- a/Formula/t/termius.rb +++ b/Formula/t/termius.rb @@ -188,7 +188,7 @@ def install end test do - system "#{bin}/termius", "host", "--address", "localhost", "-L", "test_host" - system "#{bin}/termius", "host", "--delete", "test_host" + system bin/"termius", "host", "--address", "localhost", "-L", "test_host" + system bin/"termius", "host", "--delete", "test_host" end end diff --git a/Formula/t/termrec.rb b/Formula/t/termrec.rb index 66aba0d0e8957..23a87b143ca73 100644 --- a/Formula/t/termrec.rb +++ b/Formula/t/termrec.rb @@ -41,6 +41,6 @@ def install end test do - system "#{bin}/termrec", "--help" + system bin/"termrec", "--help" end end diff --git a/Formula/t/terraform-docs.rb b/Formula/t/terraform-docs.rb index 7c59b0b20b8bd..2c099348a4dfa 100644 --- a/Formula/t/terraform-docs.rb +++ b/Formula/t/terraform-docs.rb @@ -64,6 +64,6 @@ def install value = "vpc-5c1f55fd" } EOS - system "#{bin}/terraform-docs", "json", testpath + system bin/"terraform-docs", "json", testpath end end diff --git a/Formula/t/terraform.rb b/Formula/t/terraform.rb index 2ea658842a85d..c5a240c45686d 100644 --- a/Formula/t/terraform.rb +++ b/Formula/t/terraform.rb @@ -75,7 +75,7 @@ def caveats count = 4 } EOS - system "#{bin}/terraform", "init" - system "#{bin}/terraform", "graph" + system bin/"terraform", "init" + system bin/"terraform", "graph" end end diff --git a/Formula/t/testdisk.rb b/Formula/t/testdisk.rb index d4884535fc29e..95e2bd392bcf7 100644 --- a/Formula/t/testdisk.rb +++ b/Formula/t/testdisk.rb @@ -36,6 +36,6 @@ def install path = "test.dmg" cp test_fixtures(path + ".gz"), path + ".gz" system "gunzip", path - system "#{bin}/testdisk", "/list", path + system bin/"testdisk", "/list", path end end diff --git a/Formula/t/texapp.rb b/Formula/t/texapp.rb index 9dbd33b8d7cd5..f5b7dacf4e2ef 100644 --- a/Formula/t/texapp.rb +++ b/Formula/t/texapp.rb @@ -29,6 +29,6 @@ def install end test do - assert_match "trying to find cURL ...", pipe_output("#{bin}/texapp", "^C") + assert_match "trying to find cURL ...", pipe_output(bin/"texapp", "^C") end end diff --git a/Formula/t/texi2html.rb b/Formula/t/texi2html.rb index e4b9f24a83753..6495adaa79a22 100644 --- a/Formula/t/texi2html.rb +++ b/Formula/t/texi2html.rb @@ -42,7 +42,7 @@ def install @end ifnottex @bye EOS - system "#{bin}/texi2html", "test.texinfo" + system bin/"texi2html", "test.texinfo" assert_match "Hello World!", File.read("test.html") end end diff --git a/Formula/t/texlab.rb b/Formula/t/texlab.rb index bd5fbce51e1a9..2b172fee4b6a2 100644 --- a/Formula/t/texlab.rb +++ b/Formula/t/texlab.rb @@ -66,6 +66,6 @@ def rpc(json) output = /Content-Length: \d+\r\n\r\n/ - assert_match output, pipe_output("#{bin}/texlab", input, 0) + assert_match output, pipe_output(bin/"texlab", input, 0) end end diff --git a/Formula/t/tgif.rb b/Formula/t/tgif.rb index 0cd70c580b39c..200b2934c8869 100644 --- a/Formula/t/tgif.rb +++ b/Formula/t/tgif.rb @@ -73,7 +73,7 @@ def install ]). EOS - system "#{bin}/tgif", "-print", "-text", "-quiet", "test.obj" + system bin/"tgif", "-print", "-text", "-quiet", "test.obj" assert_predicate testpath/"test.txt", :exist? end end diff --git a/Formula/t/thrift.rb b/Formula/t/thrift.rb index 24b464768eae3..6d15383bf0a80 100644 --- a/Formula/t/thrift.rb +++ b/Formula/t/thrift.rb @@ -89,7 +89,7 @@ def install } EOS - system "#{bin}/thrift", "-r", "--gen", "cpp", "test.thrift" + system bin/"thrift", "-r", "--gen", "cpp", "test.thrift" system ENV.cxx, "-std=c++11", "gen-cpp/MultiplicationService.cpp", "gen-cpp/MultiplicationService_server.skeleton.cpp", diff --git a/Formula/t/thriftgo.rb b/Formula/t/thriftgo.rb index eac987bca8c71..b74f30cc9af52 100644 --- a/Formula/t/thriftgo.rb +++ b/Formula/t/thriftgo.rb @@ -39,7 +39,7 @@ def install Response echo(1: Request req) } EOS - system "#{bin}/thriftgo", "-o=.", "-g=go", "test.thrift" + system bin/"thriftgo", "-o=.", "-g=go", "test.thrift" assert_predicate testpath/"api"/"test.go", :exist? refute_predicate (testpath/"api"/"test.go").size, :zero? end diff --git a/Formula/t/tiff2png.rb b/Formula/t/tiff2png.rb index ea321f30f79e5..ff2055c661463 100644 --- a/Formula/t/tiff2png.rb +++ b/Formula/t/tiff2png.rb @@ -28,6 +28,6 @@ def install end test do - system "#{bin}/tiff2png", test_fixtures("test.tiff") + system bin/"tiff2png", test_fixtures("test.tiff") end end diff --git a/Formula/t/tika.rb b/Formula/t/tika.rb index 3ff8c026cb968..61268a1f0f5ba 100644 --- a/Formula/t/tika.rb +++ b/Formula/t/tika.rb @@ -40,7 +40,7 @@ def install port = free_port pid = fork do - exec "#{bin}/tika-rest-server", "--port=#{port}" + exec bin/"tika-rest-server", "--port=#{port}" end sleep 10 diff --git a/Formula/t/tile38.rb b/Formula/t/tile38.rb index 3a4de92bfbd1a..d7c505a440cd5 100644 --- a/Formula/t/tile38.rb +++ b/Formula/t/tile38.rb @@ -56,7 +56,7 @@ def caveats test do port = free_port pid = fork do - exec "#{bin}/tile38-server", "-q", "-p", port.to_s + exec bin/"tile38-server", "-q", "-p", port.to_s end sleep 2 # remove `$408` in the first line output diff --git a/Formula/t/timg.rb b/Formula/t/timg.rb index 14f08f372efda..25d1f0ca1a45d 100644 --- a/Formula/t/timg.rb +++ b/Formula/t/timg.rb @@ -47,10 +47,10 @@ def install end test do - system "#{bin}/timg", "--version" - system "#{bin}/timg", "-g10x10", test_fixtures("test.gif") - system "#{bin}/timg", "-g10x10", test_fixtures("test.png") - system "#{bin}/timg", "-pq", "-g10x10", "-o", testpath/"test-output.txt", test_fixtures("test.jpg") + system bin/"timg", "--version" + system bin/"timg", "-g10x10", test_fixtures("test.gif") + system bin/"timg", "-g10x10", test_fixtures("test.png") + system bin/"timg", "-pq", "-g10x10", "-o", testpath/"test-output.txt", test_fixtures("test.jpg") assert_match "38;2;255;38;0;49m", (testpath/"test-output.txt").read end end diff --git a/Formula/t/timidity.rb b/Formula/t/timidity.rb index 29cbb50fa06b2..3c44b4aa503f2 100644 --- a/Formula/t/timidity.rb +++ b/Formula/t/timidity.rb @@ -62,6 +62,6 @@ def install end test do - system "#{bin}/timidity" + system bin/"timidity" end end diff --git a/Formula/t/tin.rb b/Formula/t/tin.rb index b5ce32867ed89..2b421be61e106 100644 --- a/Formula/t/tin.rb +++ b/Formula/t/tin.rb @@ -44,6 +44,6 @@ def install end test do - system "#{bin}/tin", "-H" + system bin/"tin", "-H" end end diff --git a/Formula/t/tinymist.rb b/Formula/t/tinymist.rb index ea41bd9faca9e..949f2f7307aec 100644 --- a/Formula/t/tinymist.rb +++ b/Formula/t/tinymist.rb @@ -43,7 +43,7 @@ def install JSON input = "Content-Length: #{json.size}\r\n\r\n#{json}" - output = IO.popen("#{bin}/tinymist", "w+") do |pipe| + output = IO.popen(bin/"tinymist", "w+") do |pipe| pipe.write(input) sleep 1 pipe.close_write diff --git a/Formula/t/tinyproxy.rb b/Formula/t/tinyproxy.rb index 945a575757e55..44d6a0001cb0b 100644 --- a/Formula/t/tinyproxy.rb +++ b/Formula/t/tinyproxy.rb @@ -55,7 +55,7 @@ def post_install inreplace testpath/"tinyproxy.conf", "Port 8888", "Port #{port}" pid = fork do - exec "#{bin}/tinyproxy", "-c", testpath/"tinyproxy.conf" + exec bin/"tinyproxy", "-c", testpath/"tinyproxy.conf" end sleep 2 diff --git a/Formula/t/tippecanoe.rb b/Formula/t/tippecanoe.rb index 2edcaaf44cad0..355d03cc11ddc 100644 --- a/Formula/t/tippecanoe.rb +++ b/Formula/t/tippecanoe.rb @@ -31,7 +31,7 @@ def install (testpath/"test.json").write <<~EOS {"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}} EOS - safe_system "#{bin}/tippecanoe", "-o", "test.mbtiles", "test.json" + safe_system bin/"tippecanoe", "-o", "test.mbtiles", "test.json" assert_predicate testpath/"test.mbtiles", :exist?, "tippecanoe generated no output!" end end diff --git a/Formula/t/tkdiff.rb b/Formula/t/tkdiff.rb index 11fa96c54d87f..5a3fb64049546 100644 --- a/Formula/t/tkdiff.rb +++ b/Formula/t/tkdiff.rb @@ -32,6 +32,6 @@ def install # Fails with: no display name and no $DISPLAY environment variable on GitHub Actions return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"].present? - system "#{bin}/tkdiff", "--help" + system bin/"tkdiff", "--help" end end diff --git a/Formula/t/tm.rb b/Formula/t/tm.rb index 967b7daa0ff22..c79e31b39936b 100644 --- a/Formula/t/tm.rb +++ b/Formula/t/tm.rb @@ -61,7 +61,7 @@ def install assert_match "Triggermesh CLI, version v#{version}", version_output # node - system "#{bin}/tm", "generate", "node", "foo-node" + system bin/"tm", "generate", "node", "foo-node" assert_predicate testpath/"foo-node/serverless.yaml", :exist? assert_predicate testpath/"foo-node/handler.js", :exist? @@ -70,7 +70,7 @@ def install assert_match "runtime: #{runtime}", yaml # python - system "#{bin}/tm", "generate", "python", "foo-python" + system bin/"tm", "generate", "python", "foo-python" assert_predicate testpath/"foo-python/serverless.yaml", :exist? assert_predicate testpath/"foo-python/handler.py", :exist? @@ -79,7 +79,7 @@ def install assert_match "runtime: #{runtime}", yaml # go - system "#{bin}/tm", "generate", "go", "foo-go" + system bin/"tm", "generate", "go", "foo-go" assert_predicate testpath/"foo-go/serverless.yaml", :exist? assert_predicate testpath/"foo-go/main.go", :exist? @@ -88,7 +88,7 @@ def install assert_match "runtime: #{runtime}", yaml # ruby - system "#{bin}/tm", "generate", "ruby", "foo-ruby" + system bin/"tm", "generate", "ruby", "foo-ruby" assert_predicate testpath/"foo-ruby/serverless.yaml", :exist? assert_predicate testpath/"foo-ruby/handler.rb", :exist? diff --git a/Formula/t/tmate.rb b/Formula/t/tmate.rb index 06da7d340af9a..6ac2983a27b22 100644 --- a/Formula/t/tmate.rb +++ b/Formula/t/tmate.rb @@ -52,6 +52,6 @@ def install end test do - system "#{bin}/tmate", "-V" + system bin/"tmate", "-V" end end diff --git a/Formula/t/tmuxinator.rb b/Formula/t/tmuxinator.rb index d3945eba948e2..57b726a11c9c4 100644 --- a/Formula/t/tmuxinator.rb +++ b/Formula/t/tmuxinator.rb @@ -74,7 +74,7 @@ def install list_output = shell_output("#{bin}/tmuxinator list") assert_match "tmuxinator projects:", list_output - system "#{bin}/tmuxinator", "new", "test" + system bin/"tmuxinator", "new", "test" list_output = shell_output("#{bin}/tmuxinator list") assert_equal "tmuxinator projects:\ntest\n", list_output end diff --git a/Formula/t/tnef.rb b/Formula/t/tnef.rb index c603d225714ba..bcdc2059dae12 100644 --- a/Formula/t/tnef.rb +++ b/Formula/t/tnef.rb @@ -31,6 +31,6 @@ def install end test do - system "#{bin}/tnef", "--version" + system bin/"tnef", "--version" end end diff --git a/Formula/t/toilet.rb b/Formula/t/toilet.rb index b6a60ff57591d..7f849a683471a 100644 --- a/Formula/t/toilet.rb +++ b/Formula/t/toilet.rb @@ -46,6 +46,6 @@ def install end test do - system "#{bin}/toilet", "--version" + system bin/"toilet", "--version" end end diff --git a/Formula/t/torsocks.rb b/Formula/t/torsocks.rb index 8a93641549f45..9fa03ea20fb2a 100644 --- a/Formula/t/torsocks.rb +++ b/Formula/t/torsocks.rb @@ -33,6 +33,6 @@ def install end test do - system "#{bin}/torsocks", "--help" + system bin/"torsocks", "--help" end end diff --git a/Formula/t/tracy.rb b/Formula/t/tracy.rb index b01137adf8256..baff0213e1ae7 100644 --- a/Formula/t/tracy.rb +++ b/Formula/t/tracy.rb @@ -52,7 +52,7 @@ def install assert_match "Tracy Profiler #{version}", shell_output("#{bin}/tracy --help") pid = fork do - exec "#{bin}/tracy", "-p", port.to_s + exec bin/"tracy", "-p", port.to_s end sleep 1 ensure diff --git a/Formula/t/trader.rb b/Formula/t/trader.rb index 6e30048d2b19a..0839512bf3bde 100644 --- a/Formula/t/trader.rb +++ b/Formula/t/trader.rb @@ -40,6 +40,6 @@ def install test do # Star Traders is an interactive game, so the only option for testing # is to run something like "trader --version" - system "#{bin}/trader", "--version" + system bin/"trader", "--version" end end diff --git a/Formula/t/trash.rb b/Formula/t/trash.rb index 676f05a0c5883..7309366d4333a 100644 --- a/Formula/t/trash.rb +++ b/Formula/t/trash.rb @@ -37,6 +37,6 @@ def install end test do - system "#{bin}/trash" + system bin/"trash" end end diff --git a/Formula/t/tree-sitter.rb b/Formula/t/tree-sitter.rb index ecdc4b847a90d..ebec442fbbcb2 100644 --- a/Formula/t/tree-sitter.rb +++ b/Formula/t/tree-sitter.rb @@ -60,7 +60,7 @@ def install --- (source_file) EOS - system "#{bin}/tree-sitter", "test" + system bin/"tree-sitter", "test" (testpath/"test_program.c").write <<~EOS #include diff --git a/Formula/t/tree.rb b/Formula/t/tree.rb index bcc43901d23d2..a8bbcdf07f843 100644 --- a/Formula/t/tree.rb +++ b/Formula/t/tree.rb @@ -29,6 +29,6 @@ def install end test do - system "#{bin}/tree", prefix + system bin/"tree", prefix end end diff --git a/Formula/t/treecc.rb b/Formula/t/treecc.rb index 1d8991c8c78e7..14395a74366a8 100644 --- a/Formula/t/treecc.rb +++ b/Formula/t/treecc.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/treecc", "-v" + system bin/"treecc", "-v" end end diff --git a/Formula/t/triangle.rb b/Formula/t/triangle.rb index 2852ed6b04eae..ece9e06493eeb 100644 --- a/Formula/t/triangle.rb +++ b/Formula/t/triangle.rb @@ -21,11 +21,11 @@ class Triangle < Formula depends_on "go" => :build def install - system "go", "build", "-mod=vendor", "-o", "#{bin}/triangle", "./cmd/triangle" + system "go", "build", "-mod=vendor", "-o", bin/"triangle", "./cmd/triangle" end test do - system "#{bin}/triangle", "-in", test_fixtures("test.png"), "-out", "out.png" + system bin/"triangle", "-in", test_fixtures("test.png"), "-out", "out.png" assert_predicate testpath/"out.png", :exist? end end diff --git a/Formula/t/trojan-go.rb b/Formula/t/trojan-go.rb index 540fb6b1ec765..dc2aceb425d81 100644 --- a/Formula/t/trojan-go.rb +++ b/Formula/t/trojan-go.rb @@ -137,7 +137,7 @@ def caveats cert: #{testpath}/test.crt key: #{testpath}/test.key EOS - server = fork { exec "#{bin}/trojan-go", "-config", testpath/"server.yaml" } + server = fork { exec bin/"trojan-go", "-config", testpath/"server.yaml" } trojan_go_client_port = free_port (testpath/"client.yaml").write <<~EOS @@ -152,7 +152,7 @@ def caveats verify: false sni: localhost EOS - client = fork { exec "#{bin}/trojan-go", "-config", testpath/"client.yaml" } + client = fork { exec bin/"trojan-go", "-config", testpath/"client.yaml" } sleep 3 begin diff --git a/Formula/t/truecrack.rb b/Formula/t/truecrack.rb index 3d4c6ee40e169..fd6cc0e3e33bf 100644 --- a/Formula/t/truecrack.rb +++ b/Formula/t/truecrack.rb @@ -42,6 +42,6 @@ def install end test do - system "#{bin}/truecrack" + system bin/"truecrack" end end diff --git a/Formula/t/tth.rb b/Formula/t/tth.rb index f7ccf2881666c..f7d4960549e20 100644 --- a/Formula/t/tth.rb +++ b/Formula/t/tth.rb @@ -31,6 +31,6 @@ def install end test do - assert_match(/version #{version}/, pipe_output("#{bin}/tth", "")) + assert_match(/version #{version}/, pipe_output(bin/"tth", "")) end end diff --git a/Formula/t/tty-clock.rb b/Formula/t/tty-clock.rb index 18377b56c843c..15a358b91a178 100644 --- a/Formula/t/tty-clock.rb +++ b/Formula/t/tty-clock.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/tty-clock", "-i" + system bin/"tty-clock", "-i" end end diff --git a/Formula/t/ttyd.rb b/Formula/t/ttyd.rb index 2cd057db575cd..ef34c4f54af47 100644 --- a/Formula/t/ttyd.rb +++ b/Formula/t/ttyd.rb @@ -37,7 +37,7 @@ def install test do port = free_port fork do - system "#{bin}/ttyd", "--port", port.to_s, "bash" + system bin/"ttyd", "--port", port.to_s, "bash" end sleep 5 diff --git a/Formula/t/ttygif.rb b/Formula/t/ttygif.rb index 3dc3227e86356..1e955c3e0c75b 100644 --- a/Formula/t/ttygif.rb +++ b/Formula/t/ttygif.rb @@ -33,6 +33,6 @@ def install return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"] ENV["TERM_PROGRAM"] = "Something" - system "#{bin}/ttygif", "--version" + system bin/"ttygif", "--version" end end diff --git a/Formula/t/tuntox.rb b/Formula/t/tuntox.rb index 363a6d60d221e..e1a1f98747da7 100644 --- a/Formula/t/tuntox.rb +++ b/Formula/t/tuntox.rb @@ -36,7 +36,7 @@ def install test do require "open3" - Open3.popen2e("#{bin}/tuntox") do |stdin, stdout_err, th| + Open3.popen2e(bin/"tuntox") do |stdin, stdout_err, th| pid = th.pid stdin.close sleep 2 diff --git a/Formula/t/tup.rb b/Formula/t/tup.rb index 063b695a13083..078280716b1a4 100644 --- a/Formula/t/tup.rb +++ b/Formula/t/tup.rb @@ -24,6 +24,6 @@ def install end test do - system "#{bin}/tup", "-v" + system bin/"tup", "-v" end end diff --git a/Formula/t/typescript-language-server.rb b/Formula/t/typescript-language-server.rb index 907a2d6c903e7..8850743108d0b 100644 --- a/Formula/t/typescript-language-server.rb +++ b/Formula/t/typescript-language-server.rb @@ -44,7 +44,7 @@ def install } JSON - Open3.popen3("#{bin}/typescript-language-server", "--stdio") do |stdin, stdout| + Open3.popen3(bin/"typescript-language-server", "--stdio") do |stdin, stdout| stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}" assert_match(/^Content-Length: \d+/i, stdout.readline) end