diff --git a/Formula/s/s3fs.rb b/Formula/s/s3fs.rb index 0f9bbea1717092..fcfd3f109a8162 100644 --- a/Formula/s/s3fs.rb +++ b/Formula/s/s3fs.rb @@ -28,6 +28,6 @@ def install end test do - system "#{bin}/s3fs", "--version" + system bin/"s3fs", "--version" end end diff --git a/Formula/s/sambamba.rb b/Formula/s/sambamba.rb index a652b93e25fad7..179e6671711c02 100644 --- a/Formula/s/sambamba.rb +++ b/Formula/s/sambamba.rb @@ -38,8 +38,8 @@ def install end resource("homebrew-testdata").stage testpath - system "#{bin}/sambamba", "view", "-S", "ex1_header.sam", "-f", "bam", "-o", "ex1_header.bam" - system "#{bin}/sambamba", "sort", "-t2", "-n", "ex1_header.bam", "-o", "ex1_header.sorted.bam", "-m", "200K" + system bin/"sambamba", "view", "-S", "ex1_header.sam", "-f", "bam", "-o", "ex1_header.bam" + system bin/"sambamba", "sort", "-t2", "-n", "ex1_header.bam", "-o", "ex1_header.sorted.bam", "-m", "200K" assert_predicate testpath/"ex1_header.sorted.bam", :exist? end end diff --git a/Formula/s/sampler.rb b/Formula/s/sampler.rb index 4fec3edad50176..f6e2aea503f04c 100644 --- a/Formula/s/sampler.rb +++ b/Formula/s/sampler.rb @@ -31,6 +31,6 @@ def install end test do - assert_includes "specify config file", shell_output("#{bin}/sampler") + assert_includes "specify config file", shell_output(bin/"sampler") end end diff --git a/Formula/s/scarb.rb b/Formula/s/scarb.rb index b366500060955e..a46e24fa60504e 100644 --- a/Formula/s/scarb.rb +++ b/Formula/s/scarb.rb @@ -38,7 +38,7 @@ def install test do assert_match "#{testpath}/Scarb.toml", shell_output("#{bin}/scarb manifest-path") - system "#{bin}/scarb", "init", "--name", "brewtest", "--no-vcs" + system bin/"scarb", "init", "--name", "brewtest", "--no-vcs" assert_predicate testpath/"src/lib.cairo", :exist? assert_match "brewtest", (testpath/"Scarb.toml").read diff --git a/Formula/s/sccache.rb b/Formula/s/sccache.rb index b4ed2ddfebf9f3..af8c8e84ae6df9 100644 --- a/Formula/s/sccache.rb +++ b/Formula/s/sccache.rb @@ -43,7 +43,7 @@ def install return 0; } EOS - system "#{bin}/sccache", "cc", "hello.c", "-o", "hello-c" + system bin/"sccache", "cc", "hello.c", "-o", "hello-c" assert_equal "Hello, world!", shell_output("./hello-c").chomp end end diff --git a/Formula/s/scour.rb b/Formula/s/scour.rb index 490c9fcc09f491..2b6a7b2a6f34f9 100644 --- a/Formula/s/scour.rb +++ b/Formula/s/scour.rb @@ -33,7 +33,7 @@ def install end test do - system "#{bin}/scour", "-i", test_fixtures("test.svg"), "-o", "scrubbed.svg" + system bin/"scour", "-i", test_fixtures("test.svg"), "-o", "scrubbed.svg" assert_predicate testpath/"scrubbed.svg", :exist? end end diff --git a/Formula/s/scrapy.rb b/Formula/s/scrapy.rb index e61c9069848872..1b698516ca48e2 100644 --- a/Formula/s/scrapy.rb +++ b/Formula/s/scrapy.rb @@ -198,9 +198,9 @@ def install test do assert_match version.to_s, shell_output("#{bin}/scrapy version") - system "#{bin}/scrapy", "startproject", "brewproject" + system bin/"scrapy", "startproject", "brewproject" cd testpath/"brewproject" do - system "#{bin}/scrapy", "genspider", "-t", "basic", "brewspider", "brew.sh" + system bin/"scrapy", "genspider", "-t", "basic", "brewspider", "brew.sh" assert_match "INFO: Spider closed (finished)", shell_output("#{bin}/scrapy crawl brewspider 2>&1") end end diff --git a/Formula/s/screenfetch.rb b/Formula/s/screenfetch.rb index e02d0817fc5199..9308b36129848a 100644 --- a/Formula/s/screenfetch.rb +++ b/Formula/s/screenfetch.rb @@ -30,6 +30,6 @@ def install end test do - system "#{bin}/screenfetch" + system bin/"screenfetch" end end diff --git a/Formula/s/screenresolution.rb b/Formula/s/screenresolution.rb index 34c1910cd041ab..8a581ddae6fa25 100644 --- a/Formula/s/screenresolution.rb +++ b/Formula/s/screenresolution.rb @@ -30,6 +30,6 @@ def install end test do - system "#{bin}/screenresolution", "get" + system bin/"screenresolution", "get" end end diff --git a/Formula/s/sdcc.rb b/Formula/s/sdcc.rb index 792e0af66ca6d8..41b8c2567755b2 100644 --- a/Formula/s/sdcc.rb +++ b/Formula/s/sdcc.rb @@ -47,7 +47,7 @@ def install return 0; } EOS - system "#{bin}/sdcc", "-mz80", "#{testpath}/test.c" + system bin/"sdcc", "-mz80", "#{testpath}/test.c" assert_predicate testpath/"test.ihx", :exist? end end diff --git a/Formula/s/sec.rb b/Formula/s/sec.rb index 20e9b38ea42f02..90539927151d9b 100644 --- a/Formula/s/sec.rb +++ b/Formula/s/sec.rb @@ -23,6 +23,6 @@ def install end test do - system "#{bin}/sec", "--version" + system bin/"sec", "--version" end end diff --git a/Formula/s/securefs.rb b/Formula/s/securefs.rb index e41069b71b4609..beaef043da13e3 100644 --- a/Formula/s/securefs.rb +++ b/Formula/s/securefs.rb @@ -43,6 +43,6 @@ def install end test do - system "#{bin}/securefs", "version" # The sandbox prevents a more thorough test + system bin/"securefs", "version" # The sandbox prevents a more thorough test end end diff --git a/Formula/s/selecta.rb b/Formula/s/selecta.rb index 2425a9f65f16a5..76684ec17daab5 100644 --- a/Formula/s/selecta.rb +++ b/Formula/s/selecta.rb @@ -14,6 +14,6 @@ def install end test do - system "#{bin}/selecta", "--version" + system bin/"selecta", "--version" end end diff --git a/Formula/s/senpai.rb b/Formula/s/senpai.rb index 1e8606db2ab2f9..29b02f725c2394 100644 --- a/Formula/s/senpai.rb +++ b/Formula/s/senpai.rb @@ -26,7 +26,7 @@ def install test do require "pty" - stdout, _stdin, _pid = PTY.spawn "#{bin}/senpai" + stdout, _stdin, _pid = PTY.spawn bin/"senpai" _ = stdout.readline assert_equal "Configuration assistant: senpai will create a configuration file for you.\r\n", stdout.readline end diff --git a/Formula/s/serf.rb b/Formula/s/serf.rb index baf2a88f79b57a..9a917845db800a 100644 --- a/Formula/s/serf.rb +++ b/Formula/s/serf.rb @@ -36,12 +36,12 @@ def install test do pid = fork do - exec "#{bin}/serf", "agent" + exec bin/"serf", "agent" end sleep 1 assert_match(/:7946.*alive$/, shell_output("#{bin}/serf members")) ensure - system "#{bin}/serf", "leave" + system bin/"serf", "leave" Process.kill "SIGINT", pid Process.wait pid end diff --git a/Formula/s/serverless.rb b/Formula/s/serverless.rb index 6dc2ca1761437a..80d0e6a8cfd0f4 100644 --- a/Formula/s/serverless.rb +++ b/Formula/s/serverless.rb @@ -51,7 +51,7 @@ def install region: eu-west-1 EOS - system("#{bin}/serverless", "config", "credentials", "--provider", "aws", "--key", "aa", "--secret", "xx") + system(bin/"serverless", "config", "credentials", "--provider", "aws", "--key", "aa", "--secret", "xx") output = shell_output("#{bin}/serverless package 2>&1") assert_match "Packaging homebrew-test for stage dev", output end diff --git a/Formula/s/sfk.rb b/Formula/s/sfk.rb index f74db660a9596b..e2218c5d303408 100644 --- a/Formula/s/sfk.rb +++ b/Formula/s/sfk.rb @@ -30,6 +30,6 @@ def install end test do - system "#{bin}/sfk", "ip" + system bin/"sfk", "ip" end end diff --git a/Formula/s/shairport.rb b/Formula/s/shairport.rb index bd7915c1bce0fd..f96469a4581a08 100644 --- a/Formula/s/shairport.rb +++ b/Formula/s/shairport.rb @@ -33,6 +33,6 @@ def install end test do - system "#{bin}/shairport", "-h" + system bin/"shairport", "-h" end end diff --git a/Formula/s/sheldon.rb b/Formula/s/sheldon.rb index 5829e2e12b23f1..c8a3e424408af3 100644 --- a/Formula/s/sheldon.rb +++ b/Formula/s/sheldon.rb @@ -49,7 +49,7 @@ def check_binary_linkage(binary, library) test do touch testpath/"plugins.toml" - system "#{bin}/sheldon", "--config-dir", testpath, "--data-dir", testpath, "lock" + system bin/"sheldon", "--config-dir", testpath, "--data-dir", testpath, "lock" assert_predicate testpath/"plugins.lock", :exist? [ diff --git a/Formula/s/shell2http.rb b/Formula/s/shell2http.rb index 27968702a76add..b854ab4223b50c 100644 --- a/Formula/s/shell2http.rb +++ b/Formula/s/shell2http.rb @@ -28,7 +28,7 @@ def install test do port = free_port pid = fork do - exec "#{bin}/shell2http", "-port", port.to_s, "/echo", "echo brewtest" + exec bin/"shell2http", "-port", port.to_s, "/echo", "echo brewtest" end sleep 1 output = shell_output("curl -s http://localhost:#{port}") diff --git a/Formula/s/shellshare.rb b/Formula/s/shellshare.rb index 7705ba5f3ce602..61a694ffa5a5fc 100644 --- a/Formula/s/shellshare.rb +++ b/Formula/s/shellshare.rb @@ -14,6 +14,6 @@ def install end test do - system "#{bin}/shellshare", "-v" + system bin/"shellshare", "-v" end end diff --git a/Formula/s/shmux.rb b/Formula/s/shmux.rb index 89bfb61dbb7e09..ce9379e21eedfc 100644 --- a/Formula/s/shmux.rb +++ b/Formula/s/shmux.rb @@ -29,6 +29,6 @@ def install end test do - system "#{bin}/shmux", "-h" + system bin/"shmux", "-h" end end diff --git a/Formula/s/siege.rb b/Formula/s/siege.rb index 1ad150c0f7261e..295a9a07388187 100644 --- a/Formula/s/siege.rb +++ b/Formula/s/siege.rb @@ -62,6 +62,6 @@ def caveats end test do - system "#{bin}/siege", "--concurrent=1", "--reps=1", "https://www.google.com/" + system bin/"siege", "--concurrent=1", "--reps=1", "https://www.google.com/" end end diff --git a/Formula/s/sigi.rb b/Formula/s/sigi.rb index b07ae41e3583dc..ac4bbbff523d92 100644 --- a/Formula/s/sigi.rb +++ b/Formula/s/sigi.rb @@ -24,7 +24,7 @@ def install end test do - system "#{bin}/sigi", "-st", "_brew_test", "push", "Hello World" + system bin/"sigi", "-st", "_brew_test", "push", "Hello World" assert_equal "Hello World", shell_output("#{bin}/sigi -qt _brew_test pop").strip end end diff --git a/Formula/s/sigrok-cli.rb b/Formula/s/sigrok-cli.rb index e787bac65bfab6..c79dfae8c697e2 100644 --- a/Formula/s/sigrok-cli.rb +++ b/Formula/s/sigrok-cli.rb @@ -50,6 +50,6 @@ def install test do # Make sure that we can capture samples from the demo device - system "#{bin}/sigrok-cli", "-d", "demo", "--samples", "1" + system bin/"sigrok-cli", "-d", "demo", "--samples", "1" end end diff --git a/Formula/s/simple-scan.rb b/Formula/s/simple-scan.rb index e978e4b08684fe..251a77ec238aec 100644 --- a/Formula/s/simple-scan.rb +++ b/Formula/s/simple-scan.rb @@ -57,6 +57,6 @@ def post_install # Errors with `Cannot open display` return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"].present? - system "#{bin}/simple-scan", "-v" + system bin/"simple-scan", "-v" end end diff --git a/Formula/s/simutrans.rb b/Formula/s/simutrans.rb index f4da3e790ba90f..80c0e3207f9bdc 100644 --- a/Formula/s/simutrans.rb +++ b/Formula/s/simutrans.rb @@ -69,6 +69,6 @@ def install end test do - system "#{bin}/simutrans", "--help" + system bin/"simutrans", "--help" end end diff --git a/Formula/s/since.rb b/Formula/s/since.rb index aaa5e39fa6bf97..911a7d8959ffa0 100644 --- a/Formula/s/since.rb +++ b/Formula/s/since.rb @@ -38,7 +38,7 @@ def install foo bar EOS - system "#{bin}/since", "-z", "test" + system bin/"since", "-z", "test" assert_predicate testpath/".since", :exist? end end diff --git a/Formula/s/sing-box.rb b/Formula/s/sing-box.rb index 9e239af9457bff..154109f3249a5b 100644 --- a/Formula/s/sing-box.rb +++ b/Formula/s/sing-box.rb @@ -46,7 +46,7 @@ def install ] } EOS - server = fork { exec "#{bin}/sing-box", "run", "-D", testpath, "-c", testpath/"shadowsocks.json" } + server = fork { exec bin/"sing-box", "run", "-D", testpath, "-c", testpath/"shadowsocks.json" } sing_box_port = free_port (testpath/"config.json").write <<~EOS @@ -69,8 +69,8 @@ def install ] } EOS - system "#{bin}/sing-box", "check", "-D", testpath, "-c", "config.json" - client = fork { exec "#{bin}/sing-box", "run", "-D", testpath, "-c", "config.json" } + system bin/"sing-box", "check", "-D", testpath, "-c", "config.json" + client = fork { exec bin/"sing-box", "run", "-D", testpath, "-c", "config.json" } sleep 3 begin diff --git a/Formula/s/sip.rb b/Formula/s/sip.rb index f70497fdea1e16..02448701c88623 100644 --- a/Formula/s/sip.rb +++ b/Formula/s/sip.rb @@ -78,6 +78,6 @@ def install %End EOS - system "#{bin}/sip-install", "--target-dir", "." + system bin/"sip-install", "--target-dir", "." end end diff --git a/Formula/s/sipcalc.rb b/Formula/s/sipcalc.rb index 91b20f5d2e497c..d23bdfae408f91 100644 --- a/Formula/s/sipcalc.rb +++ b/Formula/s/sipcalc.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/sipcalc", "-h" + system bin/"sipcalc", "-h" end end diff --git a/Formula/s/sipsak.rb b/Formula/s/sipsak.rb index 6de52fe191b899..f545c4bb20492e 100644 --- a/Formula/s/sipsak.rb +++ b/Formula/s/sipsak.rb @@ -31,6 +31,6 @@ def install end test do - system "#{bin}/sipsak", "-V" + system bin/"sipsak", "-V" end end diff --git a/Formula/s/ski.rb b/Formula/s/ski.rb index 45b2b8f6253b11..e21068b338ace1 100644 --- a/Formula/s/ski.rb +++ b/Formula/s/ski.rb @@ -32,6 +32,6 @@ def install end test do - assert_match "Bye!", pipe_output("#{bin}/ski", "") + assert_match "Bye!", pipe_output(bin/"ski", "") end end diff --git a/Formula/s/sl.rb b/Formula/s/sl.rb index 1f66687e0abd7e..5d3afdf3e506c1 100644 --- a/Formula/s/sl.rb +++ b/Formula/s/sl.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/sl", "-c" + system bin/"sl", "-c" end end diff --git a/Formula/s/slacknimate.rb b/Formula/s/slacknimate.rb index e4ceb6b21c4781..0f44417f0d1780 100644 --- a/Formula/s/slacknimate.rb +++ b/Formula/s/slacknimate.rb @@ -29,7 +29,7 @@ def install end test do - system "#{bin}/slacknimate", "--version" - system "#{bin}/slacknimate", "--help" + system bin/"slacknimate", "--version" + system bin/"slacknimate", "--help" end end diff --git a/Formula/s/sloccount.rb b/Formula/s/sloccount.rb index a9d687753c1b6b..d4fd921d936f62 100644 --- a/Formula/s/sloccount.rb +++ b/Formula/s/sloccount.rb @@ -43,7 +43,7 @@ def install end test do - system "#{bin}/sloccount", "--version" + system bin/"sloccount", "--version" end end diff --git a/Formula/s/slowhttptest.rb b/Formula/s/slowhttptest.rb index 2d209fac48c323..4efc1f55fc4850 100644 --- a/Formula/s/slowhttptest.rb +++ b/Formula/s/slowhttptest.rb @@ -28,7 +28,7 @@ def install end test do - system "#{bin}/slowhttptest", "-u", "https://google.com", + system bin/"slowhttptest", "-u", "https://google.com", "-p", "1", "-r", "1", "-l", "1", "-i", "1" assert_match version.to_s, shell_output("#{bin}/slowhttptest -h", 1) diff --git a/Formula/s/slugify.rb b/Formula/s/slugify.rb index b866eb21ca4c43..2280648f16b852 100644 --- a/Formula/s/slugify.rb +++ b/Formula/s/slugify.rb @@ -16,6 +16,6 @@ def install end test do - system "#{bin}/slugify", "-n", "dry_run.txt" + system bin/"slugify", "-n", "dry_run.txt" end end diff --git a/Formula/s/smake.rb b/Formula/s/smake.rb index 5e12e7a91e03f3..e09c0b127cf5fd 100644 --- a/Formula/s/smake.rb +++ b/Formula/s/smake.rb @@ -38,6 +38,6 @@ def install end test do - system "#{bin}/smake", "-version" + system bin/"smake", "-version" end end diff --git a/Formula/s/smartypants.rb b/Formula/s/smartypants.rb index 84685f9093d51d..8efb05227a2778 100644 --- a/Formula/s/smartypants.rb +++ b/Formula/s/smartypants.rb @@ -19,7 +19,7 @@ def install test do assert_equal "“Give me a beer”, said Mike O’Connor", - pipe_output("#{bin}/smartypants", + pipe_output(bin/"smartypants", %q("Give me a beer", said Mike O'Connor), 0) end end diff --git a/Formula/s/smimesign.rb b/Formula/s/smimesign.rb index 6550a00dfe557c..836e546ea53b46 100644 --- a/Formula/s/smimesign.rb +++ b/Formula/s/smimesign.rb @@ -28,7 +28,7 @@ def install test do assert_match version.to_s, shell_output("#{bin}/smimesign --version") - system "#{bin}/smimesign", "--list-keys" + system bin/"smimesign", "--list-keys" assert_match "could not find identity matching specified user-id: bad@identity", shell_output("#{bin}/smimesign -su bad@identity 2>&1", 1) end diff --git a/Formula/s/smlfmt.rb b/Formula/s/smlfmt.rb index 0755fdf5d4cfee..a3b48d32442705 100644 --- a/Formula/s/smlfmt.rb +++ b/Formula/s/smlfmt.rb @@ -34,7 +34,7 @@ def install val x = 5 val y = 6 EOS - system "#{bin}/smlfmt", "--force", "source.sml" + system bin/"smlfmt", "--force", "source.sml" assert_equal expected_output, (testpath/"source.sml").read end end diff --git a/Formula/s/smug.rb b/Formula/s/smug.rb index 85fce979ed878e..6041af0d722ceb 100644 --- a/Formula/s/smug.rb +++ b/Formula/s/smug.rb @@ -32,7 +32,7 @@ def install - name: test EOF - assert_equal(version, shell_output("#{bin}/smug").lines.first.split("Version").last.chomp) + assert_equal(version, shell_output(bin/"smug").lines.first.split("Version").last.chomp) with_env(TERM: "screen-256color") do system bin/"smug", "start", "--file", testpath/"test.yml", "--detach" diff --git a/Formula/s/snakeviz.rb b/Formula/s/snakeviz.rb index d6dd5691c1af31..57ccaa3a459d9f 100644 --- a/Formula/s/snakeviz.rb +++ b/Formula/s/snakeviz.rb @@ -31,7 +31,7 @@ def install test do require "cgi" - system "#{bin}/snakeviz", "--version" + system bin/"snakeviz", "--version" system "python3.12", "-m", "cProfile", "-o", "output.prof", "-m", "cProfile" port = free_port @@ -39,7 +39,7 @@ def install output_file = testpath/"output.prof" pid = fork do - exec "#{bin}/snakeviz", "--port", port.to_s, "--server", output_file + exec bin/"snakeviz", "--port", port.to_s, "--server", output_file end sleep 3 output = shell_output("curl -s http://localhost:#{port}/snakeviz/#{CGI.escape output_file}") diff --git a/Formula/s/snow.rb b/Formula/s/snow.rb index 7d6a48dab5f137..2e7ee45506010f 100644 --- a/Formula/s/snow.rb +++ b/Formula/s/snow.rb @@ -37,9 +37,9 @@ def install test do touch "in.txt" touch "out.txt" - system "#{bin}/snow", "-C", "-m", "'Secrets Abound Here'", "-p", + system bin/"snow", "-C", "-m", "'Secrets Abound Here'", "-p", "'hello world'", "in.txt", "out.txt" # The below should get the response 'Secrets Abound Here' when testing. - system "#{bin}/snow", "-C", "-p", "'hello world'", "out.txt" + system bin/"snow", "-C", "-p", "'hello world'", "out.txt" end end diff --git a/Formula/s/sntop.rb b/Formula/s/sntop.rb index e38c0dd691f795..fe9a48c7b32d2f 100644 --- a/Formula/s/sntop.rb +++ b/Formula/s/sntop.rb @@ -52,6 +52,6 @@ def caveats end test do - system "#{bin}/sntop", "--version" + system bin/"sntop", "--version" end end diff --git a/Formula/s/snzip.rb b/Formula/s/snzip.rb index de2f48e65f3bcb..73453d7279f002 100644 --- a/Formula/s/snzip.rb +++ b/Formula/s/snzip.rb @@ -27,7 +27,7 @@ def install test do (testpath/"test.out").write "test" - system "#{bin}/snzip", "test.out" - system "#{bin}/snzip", "-d", "test.out.sz" + system bin/"snzip", "test.out" + system bin/"snzip", "-d", "test.out.sz" end end diff --git a/Formula/s/solargraph.rb b/Formula/s/solargraph.rb index 7d74f15cc842d2..c418d52733e696 100644 --- a/Formula/s/solargraph.rb +++ b/Formula/s/solargraph.rb @@ -45,7 +45,7 @@ def install } JSON - Open3.popen3("#{bin}/solargraph", "stdio") do |stdin, stdout, _, _| + Open3.popen3(bin/"solargraph", "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/s/solarus.rb b/Formula/s/solarus.rb index 74feba91b42c08..b58a89d20889b9 100644 --- a/Formula/s/solarus.rb +++ b/Formula/s/solarus.rb @@ -54,6 +54,6 @@ def install end test do - system "#{bin}/solarus-run", "-help" + system bin/"solarus-run", "-help" end end diff --git a/Formula/s/souffle.rb b/Formula/s/souffle.rb index d634fbd70543f5..8e929a50e01e28 100644 --- a/Formula/s/souffle.rb +++ b/Formula/s/souffle.rb @@ -59,7 +59,7 @@ def install (testpath/"edge.facts").write <<~EOS 1,2 EOS - system "#{bin}/souffle", "-F", "#{testpath}/.", "-D", "#{testpath}/.", "#{testpath}/example.dl" + system bin/"souffle", "-F", "#{testpath}/.", "-D", "#{testpath}/.", "#{testpath}/example.dl" assert_predicate testpath/"path.csv", :exist? assert_equal "1,2\n", shell_output("cat #{testpath}/path.csv") end diff --git a/Formula/s/sourcedocs.rb b/Formula/s/sourcedocs.rb index 928c77c17b1493..d4a3739103d0c2 100644 --- a/Formula/s/sourcedocs.rb +++ b/Formula/s/sourcedocs.rb @@ -36,7 +36,7 @@ def install mkdir "foo" do system "swift", "package", "init" system "swift", "build", "--disable-sandbox" - system "#{bin}/sourcedocs", "generate", + system bin/"sourcedocs", "generate", "--spm-module", "foo", "--output-folder", testpath/"Documentation/Reference" assert_predicate testpath/"Documentation/Reference/README.md", :exist? diff --git a/Formula/s/sourcekitten.rb b/Formula/s/sourcekitten.rb index bddaefc849d343..630da2f96e4e7e 100644 --- a/Formula/s/sourcekitten.rb +++ b/Formula/s/sourcekitten.rb @@ -25,10 +25,10 @@ def install end test do - system "#{bin}/sourcekitten", "version" + system bin/"sourcekitten", "version" return if OS.mac? && MacOS::Xcode.version < 14 ENV["IN_PROCESS_SOURCEKIT"] = "YES" - system "#{bin}/sourcekitten", "syntax", "--text", "import Foundation // Hello World" + system bin/"sourcekitten", "syntax", "--text", "import Foundation // Hello World" end end diff --git a/Formula/s/spark.rb b/Formula/s/spark.rb index ac917bda2ba8c5..ac0c30744b0f4a 100644 --- a/Formula/s/spark.rb +++ b/Formula/s/spark.rb @@ -14,6 +14,6 @@ def install end test do - system "#{bin}/spark" + system bin/"spark" end end diff --git a/Formula/s/sparkey.rb b/Formula/s/sparkey.rb index 182868ca9c507b..17a8d52ec07c2f 100644 --- a/Formula/s/sparkey.rb +++ b/Formula/s/sparkey.rb @@ -37,9 +37,9 @@ def install end test do - system "#{bin}/sparkey", "createlog", "-c", "snappy", "test.spl" + system bin/"sparkey", "createlog", "-c", "snappy", "test.spl" system "echo foo.bar | #{bin}/sparkey appendlog -d . test.spl" - system "#{bin}/sparkey", "writehash", "test.spl" + system bin/"sparkey", "writehash", "test.spl" system "#{bin}/sparkey get test.spi foo | grep ^bar$" end end diff --git a/Formula/s/sparse.rb b/Formula/s/sparse.rb index 0bb8bb1099247d..d2019fc43a5bd2 100644 --- a/Formula/s/sparse.rb +++ b/Formula/s/sparse.rb @@ -46,6 +46,6 @@ def install test do (testpath/"test.C").write("int main(int a) {return a;}\n") - system "#{bin}/sparse", testpath/"test.C" + system bin/"sparse", testpath/"test.C" end end diff --git a/Formula/s/spawn-fcgi.rb b/Formula/s/spawn-fcgi.rb index b1d008322e5c11..5245147db09eea 100644 --- a/Formula/s/spawn-fcgi.rb +++ b/Formula/s/spawn-fcgi.rb @@ -28,6 +28,6 @@ def install end test do - system "#{bin}/spawn-fcgi", "--version" + system bin/"spawn-fcgi", "--version" end end diff --git a/Formula/s/speedread.rb b/Formula/s/speedread.rb index b2d5c2f2cf1ff5..6c85f9c182f695 100644 --- a/Formula/s/speedread.rb +++ b/Formula/s/speedread.rb @@ -25,6 +25,6 @@ def install end test do - system "#{bin}/speedread", "-w 1000", "<(echo This is a test)" + system bin/"speedread", "-w 1000", "<(echo This is a test)" end end diff --git a/Formula/s/spim.rb b/Formula/s/spim.rb index c8ab425159f6d3..54f41b265b745c 100644 --- a/Formula/s/spim.rb +++ b/Formula/s/spim.rb @@ -32,6 +32,6 @@ def install end test do - assert_match "__start", pipe_output("#{bin}/spim", "print_symbols") + assert_match "__start", pipe_output(bin/"spim", "print_symbols") end end diff --git a/Formula/s/spoof-mac.rb b/Formula/s/spoof-mac.rb index 9d945bd4cb42df..b0ae77c16df5ea 100644 --- a/Formula/s/spoof-mac.rb +++ b/Formula/s/spoof-mac.rb @@ -57,6 +57,6 @@ def caveats end test do - system "#{bin}/spoof-mac", "list", "--wifi" + system bin/"spoof-mac", "list", "--wifi" end end diff --git a/Formula/s/spr.rb b/Formula/s/spr.rb index 3189a44445588f..3399768900cebe 100644 --- a/Formula/s/spr.rb +++ b/Formula/s/spr.rb @@ -28,7 +28,7 @@ def install end test do - spr = "#{bin}/spr" + spr = bin/"spr" assert_match "spr #{version}", shell_output("#{spr} --version") system "git", "config", "--global", "user.email", "nobody@example.com" diff --git a/Formula/s/sql-language-server.rb b/Formula/s/sql-language-server.rb index e835b588708e0d..82640cf280324f 100644 --- a/Formula/s/sql-language-server.rb +++ b/Formula/s/sql-language-server.rb @@ -64,7 +64,7 @@ def install } JSON - Open3.popen3("#{bin}/sql-language-server", "up", "--method", "stdio") do |stdin, stdout| + Open3.popen3(bin/"sql-language-server", "up", "--method", "stdio") do |stdin, stdout| stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}" assert_match(/^Content-Length: \d+/i, stdout.readline) end diff --git a/Formula/s/squiid.rb b/Formula/s/squiid.rb index 986a947016c2d6..c15dbaa92934bb 100644 --- a/Formula/s/squiid.rb +++ b/Formula/s/squiid.rb @@ -59,7 +59,7 @@ def check_binary_linkage(binary, library) test do require "pty" - PTY.spawn("#{bin}/squiid") do |r, w, pid| + PTY.spawn(bin/"squiid") do |r, w, pid| sleep 1 # wait for squiid to start w.write "(10 - 2) * (3 + 5) / 4\r" diff --git a/Formula/s/ssdb.rb b/Formula/s/ssdb.rb index dd9c5648c651cf..b9a5ed8f541878 100644 --- a/Formula/s/ssdb.rb +++ b/Formula/s/ssdb.rb @@ -72,7 +72,7 @@ def install test do pid = fork do Signal.trap("TERM") do - system("#{bin}/ssdb-server", "-d", "#{HOMEBREW_PREFIX}/etc/ssdb.conf") + system(bin/"ssdb-server", "-d", "#{HOMEBREW_PREFIX}/etc/ssdb.conf") exit end end diff --git a/Formula/s/sshfs.rb b/Formula/s/sshfs.rb index 18d9dac72f54a6..b8cad0ea1ad837 100644 --- a/Formula/s/sshfs.rb +++ b/Formula/s/sshfs.rb @@ -23,6 +23,6 @@ def install end test do - system "#{bin}/sshfs", "--version" + system bin/"sshfs", "--version" end end diff --git a/Formula/s/sshtrix.rb b/Formula/s/sshtrix.rb index 053d4bb38f18b6..9b9b3acf7a317e 100644 --- a/Formula/s/sshtrix.rb +++ b/Formula/s/sshtrix.rb @@ -35,7 +35,7 @@ def install end test do - system "#{bin}/sshtrix", "-V" - system "#{bin}/sshtrix", "-O" + system bin/"sshtrix", "-V" + system bin/"sshtrix", "-O" end end diff --git a/Formula/s/ssldump.rb b/Formula/s/ssldump.rb index 2f42e8f96c8c7f..a6460cba78add2 100644 --- a/Formula/s/ssldump.rb +++ b/Formula/s/ssldump.rb @@ -35,7 +35,7 @@ def install end test do - system "#{bin}/ssldump", "-v" + system bin/"ssldump", "-v" end end diff --git a/Formula/s/ssllabs-scan.rb b/Formula/s/ssllabs-scan.rb index f69b481e20f113..7996fbac12091c 100644 --- a/Formula/s/ssllabs-scan.rb +++ b/Formula/s/ssllabs-scan.rb @@ -37,6 +37,6 @@ def caveats end test do - system "#{bin}/ssllabs-scan", "-grade", "-quiet", "-usecache", "ssllabs.com" + system bin/"ssllabs-scan", "-grade", "-quiet", "-usecache", "ssllabs.com" end end diff --git a/Formula/s/sslscan.rb b/Formula/s/sslscan.rb index c8857702fd8783..3261fb39ce87a2 100644 --- a/Formula/s/sslscan.rb +++ b/Formula/s/sslscan.rb @@ -25,6 +25,6 @@ def install test do assert_match version.to_s, shell_output("#{bin}/sslscan --version") - system "#{bin}/sslscan", "google.com" + system bin/"sslscan", "google.com" end end diff --git a/Formula/s/star.rb b/Formula/s/star.rb index a1d73b1e665660..b50c76188729a8 100644 --- a/Formula/s/star.rb +++ b/Formula/s/star.rb @@ -30,7 +30,7 @@ def install end test do - system "#{bin}/star", "--version" + system bin/"star", "--version" (testpath/"test").write("Hello Homebrew!") system bin/"star", "-c", "-z", "-v", "file=test.tar.gz", "test" diff --git a/Formula/s/step.rb b/Formula/s/step.rb index 9ac2b67042fdda..40a148cfe79172 100644 --- a/Formula/s/step.rb +++ b/Formula/s/step.rb @@ -40,12 +40,12 @@ def install test do # Generate a public / private key pair. Creates foo.pub and foo.priv. - system "#{bin}/step", "crypto", "keypair", "foo.pub", "foo.priv", "--no-password", "--insecure" + system bin/"step", "crypto", "keypair", "foo.pub", "foo.priv", "--no-password", "--insecure" assert_predicate testpath/"foo.pub", :exist? assert_predicate testpath/"foo.priv", :exist? # Generate a root certificate and private key with subject baz written to baz.crt and baz.key. - system "#{bin}/step", "certificate", "create", "--profile", "root-ca", + system bin/"step", "certificate", "create", "--profile", "root-ca", "--no-password", "--insecure", "baz", "baz.crt", "baz.key" assert_predicate testpath/"baz.crt", :exist? assert_predicate testpath/"baz.key", :exist? @@ -61,7 +61,7 @@ def install assert_equal "CN=baz", baz_crt_json["issuer_dn"] # Generate a leaf certificate signed by the previously created root. - system "#{bin}/step", "certificate", "create", "--profile", "intermediate-ca", + system bin/"step", "certificate", "create", "--profile", "intermediate-ca", "--no-password", "--insecure", "--ca", "baz.crt", "--ca-key", "baz.key", "zap", "zap.crt", "zap.key" assert_predicate testpath/"zap.crt", :exist? @@ -83,14 +83,14 @@ def install steppath = "#{testpath}/.step" mkdir_p(steppath) ENV["STEPPATH"] = steppath - system "#{bin}/step", "ca", "init", "--address", "127.0.0.1:8081", + system bin/"step", "ca", "init", "--address", "127.0.0.1:8081", "--dns", "127.0.0.1", "--password-file", "#{testpath}/password.txt", "--provisioner-password-file", "#{testpath}/password.txt", "--name", "homebrew-smallstep-test", "--provisioner", "brew" begin pid = fork do - exec "#{bin}/step-ca", "--password-file", "#{testpath}/password.txt", + exec bin/"step-ca", "--password-file", "#{testpath}/password.txt", "#{steppath}/config/ca.json" end @@ -101,7 +101,7 @@ def install shell_output("#{bin}/step ca token --password-file #{testpath}/password.txt " \ "homebrew-smallstep-leaf > token.txt") token = File.read(testpath/"token.txt") - system "#{bin}/step", "ca", "certificate", "--token", token, + system bin/"step", "ca", "certificate", "--token", token, "homebrew-smallstep-leaf", "brew.crt", "brew.key" assert_predicate testpath/"brew.crt", :exist? diff --git a/Formula/s/stockfish.rb b/Formula/s/stockfish.rb index d6969c975b75c1..c3e8a887cf85dc 100644 --- a/Formula/s/stockfish.rb +++ b/Formula/s/stockfish.rb @@ -31,6 +31,6 @@ def install end test do - system "#{bin}/stockfish", "go", "depth", "20" + system bin/"stockfish", "go", "depth", "20" end end diff --git a/Formula/s/stoken.rb b/Formula/s/stoken.rb index 91dccc95aee3bd..18d9b4ed66a098 100644 --- a/Formula/s/stoken.rb +++ b/Formula/s/stoken.rb @@ -34,6 +34,6 @@ def install end test do - system "#{bin}/stoken", "show", "--random" + system bin/"stoken", "show", "--random" end end diff --git a/Formula/s/streamlink.rb b/Formula/s/streamlink.rb index 912ef4830ef819..a9d489903cc82e 100644 --- a/Formula/s/streamlink.rb +++ b/Formula/s/streamlink.rb @@ -134,7 +134,7 @@ def install end test do - system "#{bin}/streamlink", "https://vimeo.com/144358359", "360p", "-o", "video.mp4" + system bin/"streamlink", "https://vimeo.com/144358359", "360p", "-o", "video.mp4" assert_match "video.mp4: ISO Media, MP4 v2", shell_output("file video.mp4") url = OS.mac? ? "https://ok.ru/video/3388934659879" : "https://www.youtube.com/watch?v=pOtd1cbOP7k" diff --git a/Formula/s/streamripper.rb b/Formula/s/streamripper.rb index 33039cac355184..38b769ff26e300 100644 --- a/Formula/s/streamripper.rb +++ b/Formula/s/streamripper.rb @@ -40,6 +40,6 @@ def install end test do - system "#{bin}/streamripper", "--version" + system bin/"streamripper", "--version" end end diff --git a/Formula/s/stubby.rb b/Formula/s/stubby.rb index 4439ac6622d348..f4bab3a21ed69d 100644 --- a/Formula/s/stubby.rb +++ b/Formula/s/stubby.rb @@ -60,7 +60,7 @@ def install assert_match "bindata for 8.8.8.8", output fork do - exec "#{bin}/stubby", "-C", testpath/"stubby_test.yml" + exec bin/"stubby", "-C", testpath/"stubby_test.yml" end sleep 2 diff --git a/Formula/s/sub2srt.rb b/Formula/s/sub2srt.rb index e0b7104c06b0ef..9b9744fc51ee98 100644 --- a/Formula/s/sub2srt.rb +++ b/Formula/s/sub2srt.rb @@ -39,7 +39,7 @@ def install homebrew two EOS - system "#{bin}/sub2srt", "#{testpath}/test.sub" + system bin/"sub2srt", "#{testpath}/test.sub" assert_equal expected, (testpath/"test.srt").read.chomp end end diff --git a/Formula/s/supermodel.rb b/Formula/s/supermodel.rb index dd4c0757a980f9..4cc5fe824f2cef 100644 --- a/Formula/s/supermodel.rb +++ b/Formula/s/supermodel.rb @@ -73,6 +73,6 @@ def caveats end test do - system "#{bin}/supermodel", "-print-games" + system bin/"supermodel", "-print-games" end end diff --git a/Formula/s/svg2pdf.rb b/Formula/s/svg2pdf.rb index 4262a8eb7dfc99..1558cad87f028e 100644 --- a/Formula/s/svg2pdf.rb +++ b/Formula/s/svg2pdf.rb @@ -46,7 +46,7 @@ def install test do resource("svg.svg").stage do - system "#{bin}/svg2pdf", "svg.svg", "test.pdf" + system bin/"svg2pdf", "svg.svg", "test.pdf" assert_predicate Pathname.pwd/"test.pdf", :exist? end end diff --git a/Formula/s/svg2png.rb b/Formula/s/svg2png.rb index b3d58658c8a00e..5bd65dcd2f726d 100644 --- a/Formula/s/svg2png.rb +++ b/Formula/s/svg2png.rb @@ -51,7 +51,7 @@ def install end test do - system "#{bin}/svg2png", test_fixtures("test.svg"), "test.png" + system bin/"svg2png", test_fixtures("test.svg"), "test.png" assert_predicate testpath/"test.png", :exist? end end diff --git a/Formula/s/swagger-codegen.rb b/Formula/s/swagger-codegen.rb index d305da571bc8f9..65f9d8abef0567 100644 --- a/Formula/s/swagger-codegen.rb +++ b/Formula/s/swagger-codegen.rb @@ -42,7 +42,7 @@ def install 200: description: OK EOS - system "#{bin}/swagger-codegen", "generate", "-i", "minimal.yaml", "-l", "html" + system bin/"swagger-codegen", "generate", "-i", "minimal.yaml", "-l", "html" assert_includes File.read(testpath/"index.html"), "