From 82c2c20c2c0cf8103c4f538c5b58bb5c126db139 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:52 +0100 Subject: [PATCH 01/56] tag: Stop interpolating `bin` --- Formula/t/tag.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 3e2834117375e6e53f27ed78ac9afaa283295060 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:52 +0100 Subject: [PATCH 02/56] tailor: Stop interpolating `bin` --- Formula/t/tailor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6048764dc95c704b4908f2e6ac0fa00dbb1a55fe Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:52 +0100 Subject: [PATCH 03/56] tailwindcss-language-server: Stop interpolating `bin` --- Formula/t/tailwindcss-language-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/t/tailwindcss-language-server.rb b/Formula/t/tailwindcss-language-server.rb index 6716d18824fd1..e0a0116f3694c 100644 --- a/Formula/t/tailwindcss-language-server.rb +++ b/Formula/t/tailwindcss-language-server.rb @@ -51,7 +51,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) From def5a51223ed0f1d81e939f635854c1b5dec230e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:52 +0100 Subject: [PATCH 04/56] tal: Stop interpolating `bin` --- Formula/t/tal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a2570f41a11cb9f21cead40a29ad33ce40ab56fd Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:53 +0100 Subject: [PATCH 05/56] tarlz: Stop interpolating `bin` --- Formula/t/tarlz.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4fea3abef4cf142976440b26a446ccfa8784e272 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:53 +0100 Subject: [PATCH 06/56] task: Stop interpolating `bin` --- Formula/t/task.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From ede40e35ca1810042d24e192b9489497a94c9e4e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:53 +0100 Subject: [PATCH 07/56] taskd: Stop interpolating `bin` --- Formula/t/taskd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From cf3a45a73e379ee153fa9b4e6b7d289ff9daa6dc Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:53 +0100 Subject: [PATCH 08/56] tasksh: Stop interpolating `bin` --- Formula/t/tasksh.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 01b1e15515de69a182717fb1845a6d4078037ee2 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:53 +0100 Subject: [PATCH 09/56] tcping: Stop interpolating `bin` --- Formula/t/tcping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 924ee8636cbdd8c4093d0e6779791639fcd0cee2 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:54 +0100 Subject: [PATCH 10/56] tcpkali: Stop interpolating `bin` --- Formula/t/tcpkali.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 171f2468585e3a7f927f162f6d8a61e96d654c1f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:54 +0100 Subject: [PATCH 11/56] tcpsplit: Stop interpolating `bin` --- Formula/t/tcpsplit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 3c5db41f20880f17602519ed65e1f81c38bb0177 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:54 +0100 Subject: [PATCH 12/56] td: Stop interpolating `bin` --- Formula/t/td.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 3e94150ced3a3de482dd98c8d0824ab72e49b0d4 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:54 +0100 Subject: [PATCH 13/56] telegraf: Stop interpolating `bin` --- Formula/t/telegraf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 4decc2657c23c2e9c1bb4b4975b784681ed71d0c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:54 +0100 Subject: [PATCH 14/56] termius: Stop interpolating `bin` --- Formula/t/termius.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 0a906280ef68179b741734ad04c8dd6ccaa40aac Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:55 +0100 Subject: [PATCH 15/56] termrec: Stop interpolating `bin` --- Formula/t/termrec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 7a10dbec929bdb511cb8d517d5e335cf37f7ebce Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:55 +0100 Subject: [PATCH 16/56] terraform-docs: Stop interpolating `bin` --- Formula/t/terraform-docs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 929884c9c3bbd8a905602a8956bf3b0179b3ce12 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:55 +0100 Subject: [PATCH 17/56] terraform: Stop interpolating `bin` --- Formula/t/terraform.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 6515129419e24b1ea7265e813ec297f708622e4e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:55 +0100 Subject: [PATCH 18/56] testdisk: Stop interpolating `bin` --- Formula/t/testdisk.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a33914ee66a2ca1e2a9fb06a759486a35aef66f5 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:55 +0100 Subject: [PATCH 19/56] texapp: Stop interpolating `bin` --- Formula/t/texapp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 48968a6fc56ef2f5c3cb7000c4a869987a3708e6 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:56 +0100 Subject: [PATCH 20/56] texi2html: Stop interpolating `bin` --- Formula/t/texi2html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 2f39b43c5a19c731540dd4a527e38ae927757283 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:56 +0100 Subject: [PATCH 21/56] texlab: Stop interpolating `bin` --- Formula/t/texlab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From b9616ad5a7fdf48c5c2f7a4c2f410d2398e222e2 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:56 +0100 Subject: [PATCH 22/56] tgif: Stop interpolating `bin` --- Formula/t/tgif.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 32f4a2996b25520f79eaf24065ce745865ba4acb Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:56 +0100 Subject: [PATCH 23/56] thrift: Stop interpolating `bin` --- Formula/t/thrift.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From d797d7a57ea29621c8a3887b57741a91fa129841 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:56 +0100 Subject: [PATCH 24/56] thriftgo: Stop interpolating `bin` --- Formula/t/thriftgo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6e01e355da4d782eb6c9472570eb21331b784a0b Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:57 +0100 Subject: [PATCH 25/56] tiff2png: Stop interpolating `bin` --- Formula/t/tiff2png.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 28a929dc8dccdd47f963e84141d6637f697371f7 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:57 +0100 Subject: [PATCH 26/56] tika: Stop interpolating `bin` --- Formula/t/tika.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From b390b1611b7a1409c32fdbbfbece5ebdbd6e7f40 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:57 +0100 Subject: [PATCH 27/56] tile38: Stop interpolating `bin` --- Formula/t/tile38.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 41371f24b4d96bde4613320e59c77b1131d5b22a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:57 +0100 Subject: [PATCH 28/56] timg: Stop interpolating `bin` --- Formula/t/timg.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 From a9c490bde9a82a340509f191d97b476dd7174e27 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:57 +0100 Subject: [PATCH 29/56] timidity: Stop interpolating `bin` --- Formula/t/timidity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From eacf136ce15683ed67a5e01dae23f34decec3e43 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:58 +0100 Subject: [PATCH 30/56] tin: Stop interpolating `bin` --- Formula/t/tin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4c3a2e8f3acabf960f16f617bcf6185858306ffd Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:58 +0100 Subject: [PATCH 31/56] tinymist: Stop interpolating `bin` --- Formula/t/tinymist.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4a65ba1dc325aa58dca9ea6336f5cd00d298750f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:58 +0100 Subject: [PATCH 32/56] tinyproxy: Stop interpolating `bin` --- Formula/t/tinyproxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 5fa8d3779809c669881c469756f4b5efe28b007f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:58 +0100 Subject: [PATCH 33/56] tippecanoe: Stop interpolating `bin` --- Formula/t/tippecanoe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From e4c3524276c70b57547ea8aff5d769b601350d3d Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:59 +0100 Subject: [PATCH 34/56] tkdiff: Stop interpolating `bin` --- Formula/t/tkdiff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 03524e84fcc194f174e4d96de7ecf3fb8283ef6b Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:59 +0100 Subject: [PATCH 35/56] tm: Stop interpolating `bin` --- Formula/t/tm.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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? From b51ebdd69b9b1e7ae68e9745926498fb5b6c6740 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:59 +0100 Subject: [PATCH 36/56] tmate: Stop interpolating `bin` --- Formula/t/tmate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From b1e66bbb2146eb58ec8f2857ba6c23d8a56616bd Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:59 +0100 Subject: [PATCH 37/56] tmuxinator: Stop interpolating `bin` --- Formula/t/tmuxinator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 3e03f6a52ba169d9fa0ec862a1489eaab70b44b2 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:50:59 +0100 Subject: [PATCH 38/56] tnef: Stop interpolating `bin` --- Formula/t/tnef.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a00a24b813f0f184e6062d819c15547488567401 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:00 +0100 Subject: [PATCH 39/56] toilet: Stop interpolating `bin` --- Formula/t/toilet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From fa0b109aca01ce6ed25f50bb5a1e65d3ac269c1c Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:00 +0100 Subject: [PATCH 40/56] torsocks: Stop interpolating `bin` --- Formula/t/torsocks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 48fc6b1baf58016eac3d913828496b056023db19 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:00 +0100 Subject: [PATCH 41/56] tracy: Stop interpolating `bin` --- Formula/t/tracy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8941b6212242a43b49764afc5b6867ea6af984fa Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:00 +0100 Subject: [PATCH 42/56] trader: Stop interpolating `bin` --- Formula/t/trader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From b11f4fc1bc11a2b33c86f4444a1dec4dfc3087b7 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:00 +0100 Subject: [PATCH 43/56] trash: Stop interpolating `bin` --- Formula/t/trash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 35652518709eba16988f3ea8cf16b63fd321445e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:01 +0100 Subject: [PATCH 44/56] tree-sitter: Stop interpolating `bin` --- Formula/t/tree-sitter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 409665f35cdbaca15adbf417a0905ac15bf44358 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:01 +0100 Subject: [PATCH 45/56] tree: Stop interpolating `bin` --- Formula/t/tree.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4a35ea3997c96d8e22b78e84a453c9fc9a45b736 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:01 +0100 Subject: [PATCH 46/56] treecc: Stop interpolating `bin` --- Formula/t/treecc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From b1e41e07760d2372725bf527b2c61bc9741334ee Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:01 +0100 Subject: [PATCH 47/56] triangle: Stop interpolating `bin` --- Formula/t/triangle.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From f6da59c73f7ce4b391a9eeba04702501982a1624 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:01 +0100 Subject: [PATCH 48/56] trojan-go: Stop interpolating `bin` --- Formula/t/trojan-go.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 8182c51597084c97eedec0cea04eb9f8a5827ae4 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:02 +0100 Subject: [PATCH 49/56] truecrack: Stop interpolating `bin` --- Formula/t/truecrack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a034a04406b191668979be49931bb7cb682e3107 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:02 +0100 Subject: [PATCH 50/56] tth: Stop interpolating `bin` --- Formula/t/tth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From dd868337814dce7b4109667b85e00b0d11dc65fb Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:02 +0100 Subject: [PATCH 51/56] tty-clock: Stop interpolating `bin` --- Formula/t/tty-clock.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 9648ccd72cdb89c45732222119aafdfa3a8e30df Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:02 +0100 Subject: [PATCH 52/56] ttyd: Stop interpolating `bin` --- Formula/t/ttyd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 1cc1f2d0e545692564adf70bad9aa958eef530a9 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:02 +0100 Subject: [PATCH 53/56] ttygif: Stop interpolating `bin` --- Formula/t/ttygif.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 9b6abd76535fd9573820971ebf252ee7db5c07ce Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:03 +0100 Subject: [PATCH 54/56] tuntox: Stop interpolating `bin` --- Formula/t/tuntox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4a118011066159376a4a80a086e38c448dbc9e86 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:03 +0100 Subject: [PATCH 55/56] tup: Stop interpolating `bin` --- Formula/t/tup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From d57fac3412d9afadf3efce09daa91ab6e05a0cf0 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Thu, 1 Aug 2024 22:51:03 +0100 Subject: [PATCH 56/56] typescript-language-server: Stop interpolating `bin` --- Formula/t/typescript-language-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/t/typescript-language-server.rb b/Formula/t/typescript-language-server.rb index b0a7c6355b906..70cb5dc6927fe 100644 --- a/Formula/t/typescript-language-server.rb +++ b/Formula/t/typescript-language-server.rb @@ -39,7 +39,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