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

d*: Stop interpolating bin #179337

Merged
merged 55 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d5f3a4a
daemon: Stop interpolating `bin`
p-linnane Aug 1, 2024
554332f
daemonlogger: Stop interpolating `bin`
p-linnane Aug 1, 2024
be78e04
darkhttpd: Stop interpolating `bin`
p-linnane Aug 1, 2024
147e13d
dash: Stop interpolating `bin`
p-linnane Aug 1, 2024
633d74d
dasht: Stop interpolating `bin`
p-linnane Aug 1, 2024
3caa7d1
davix: Stop interpolating `bin`
p-linnane Aug 1, 2024
ddd22ac
dbacl: Stop interpolating `bin`
p-linnane Aug 1, 2024
095d3e3
dbus: Stop interpolating `bin`
p-linnane Aug 1, 2024
bd8b5ec
dcadec: Stop interpolating `bin`
p-linnane Aug 1, 2024
2d9d8d1
dcd: Stop interpolating `bin`
p-linnane Aug 1, 2024
608fe80
dcfldd: Stop interpolating `bin`
p-linnane Aug 1, 2024
961dde7
dcled: Stop interpolating `bin`
p-linnane Aug 1, 2024
22649af
dcm2niix: Stop interpolating `bin`
p-linnane Aug 1, 2024
fc900f2
dcraw: Stop interpolating `bin`
p-linnane Aug 1, 2024
ef84a8d
deark: Stop interpolating `bin`
p-linnane Aug 1, 2024
91dd352
defaultbrowser: Stop interpolating `bin`
p-linnane Aug 1, 2024
28d74c6
denominator: Stop interpolating `bin`
p-linnane Aug 1, 2024
93ea8bc
depqbf: Stop interpolating `bin`
p-linnane Aug 1, 2024
10c5f60
detach: Stop interpolating `bin`
p-linnane Aug 1, 2024
cff23b9
dfix: Stop interpolating `bin`
p-linnane Aug 1, 2024
76973ae
dfmt: Stop interpolating `bin`
p-linnane Aug 1, 2024
2615d65
dhall-lsp-server: Stop interpolating `bin`
p-linnane Aug 1, 2024
3ef6f47
dhcpdump: Stop interpolating `bin`
p-linnane Aug 1, 2024
39c886c
dialog: Stop interpolating `bin`
p-linnane Aug 1, 2024
993a0ff
diskonaut: Stop interpolating `bin`
p-linnane Aug 1, 2024
5530c7b
dislocker: Stop interpolating `bin`
p-linnane Aug 1, 2024
5ca1279
ditaa: Stop interpolating `bin`
p-linnane Aug 1, 2024
5205e0d
djvu2pdf: Stop interpolating `bin`
p-linnane Aug 1, 2024
e428024
dmalloc: Stop interpolating `bin`
p-linnane Aug 1, 2024
c9d9a5d
dmg2img: Stop interpolating `bin`
p-linnane Aug 1, 2024
ecf1bed
dnsmap: Stop interpolating `bin`
p-linnane Aug 1, 2024
ca2eb96
dnsperf: Stop interpolating `bin`
p-linnane Aug 1, 2024
d310618
dnstop: Stop interpolating `bin`
p-linnane Aug 1, 2024
608d65a
docker-clean: Stop interpolating `bin`
p-linnane Aug 1, 2024
0d30670
docker-machine-nfs: Stop interpolating `bin`
p-linnane Aug 1, 2024
64a5852
docuum: Stop interpolating `bin`
p-linnane Aug 1, 2024
15e232b
dory: Stop interpolating `bin`
p-linnane Aug 1, 2024
1c606f3
dos2unix: Stop interpolating `bin`
p-linnane Aug 1, 2024
e61efa2
dosbox: Stop interpolating `bin`
p-linnane Aug 1, 2024
1361bb5
dotenv-linter: Stop interpolating `bin`
p-linnane Aug 1, 2024
2813591
doublecpp: Stop interpolating `bin`
p-linnane Aug 1, 2024
b74f134
doubledown: Stop interpolating `bin`
p-linnane Aug 1, 2024
bde65db
dssim: Stop interpolating `bin`
p-linnane Aug 1, 2024
ef3f75c
dtc: Stop interpolating `bin`
p-linnane Aug 1, 2024
ae45fad
dterm: Stop interpolating `bin`
p-linnane Aug 1, 2024
20b4f49
dtrx: Stop interpolating `bin`
p-linnane Aug 1, 2024
91a2c38
dub: Stop interpolating `bin`
p-linnane Aug 1, 2024
fd7ec65
duck: Stop interpolating `bin`
p-linnane Aug 1, 2024
5c71319
dufs: Stop interpolating `bin`
p-linnane Aug 1, 2024
3c60f7a
dungeon: Stop interpolating `bin`
p-linnane Aug 1, 2024
81d17cb
duply: Stop interpolating `bin`
p-linnane Aug 1, 2024
cfa82ef
dvd-vr: Stop interpolating `bin`
p-linnane Aug 1, 2024
d9f8936
dvdbackup: Stop interpolating `bin`
p-linnane Aug 1, 2024
52f5fbd
dwatch: Stop interpolating `bin`
p-linnane Aug 1, 2024
2b052e9
dylibbundler: Stop interpolating `bin`
p-linnane Aug 1, 2024
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/d/daemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def install
end

test do
system "#{bin}/daemon", "--version"
system bin/"daemon", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/d/daemonlogger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ def install
end

test do
system "#{bin}/daemonlogger", "-h"
system bin/"daemonlogger", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/d/darkhttpd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def install
end

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

test do
system "#{bin}/dash", "-c", "echo Hello!"
system bin/"dash", "-c", "echo Hello!"
end
end
4 changes: 2 additions & 2 deletions Formula/d/dasht.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def install
end

test do
system "#{bin}/dasht-docsets-install", "--force", "bash"
assert_equal "Bash\n", shell_output("#{bin}/dasht-docsets")
system bin/"dasht-docsets-install", "--force", "bash"
assert_equal "Bash\n", shell_output(bin/"dasht-docsets")
end
end
2 changes: 1 addition & 1 deletion Formula/d/davix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def install
end

test do
system "#{bin}/davix-get", "https://brew.sh"
system bin/"davix-get", "https://brew.sh"
end
end
4 changes: 2 additions & 2 deletions Formula/d/dbacl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def install
The course of true love never did run smooth.
EOS

system "#{bin}/dbacl", "-l", "twain", "mark-twain.txt"
system "#{bin}/dbacl", "-l", "shake", "william-shakespeare.txt"
system bin/"dbacl", "-l", "twain", "mark-twain.txt"
system bin/"dbacl", "-l", "shake", "william-shakespeare.txt"

output = pipe_output("#{bin}/dbacl -v -c twain -c shake", "to be or not to be")
assert_equal "shake", output.strip
Expand Down
4 changes: 2 additions & 2 deletions Formula/d/dbus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def install

def post_install
# Generate D-Bus's UUID for this machine
system "#{bin}/dbus-uuidgen", "--ensure=#{var}/lib/dbus/machine-id"
system bin/"dbus-uuidgen", "--ensure=#{var}/lib/dbus/machine-id"
end

service do
name macos: "org.freedesktop.dbus-session"
end

test do
system "#{bin}/dbus-daemon", "--version"
system bin/"dbus-daemon", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dcadec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def install

test do
resource("homebrew-testdata").stage do
system "#{bin}/dcadec", resource("homebrew-testdata").cached_download
system bin/"dcadec", resource("homebrew-testdata").cached_download
end
end
end
4 changes: 2 additions & 2 deletions Formula/d/dcd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ def install
# spawn a server, using a non-default port to avoid
# clashes with pre-existing dcd-server instances
server = fork do
exec "#{bin}/dcd-server", "-p", port.to_s
exec bin/"dcd-server", "-p", port.to_s
end
# Give it generous time to load
sleep 0.5
# query the server from a client
system "#{bin}/dcd-client", "-q", "-p", port.to_s
system bin/"dcd-client", "-q", "-p", port.to_s
ensure
Process.kill "TERM", server
Process.wait server
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dcfldd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def install
end

test do
system "#{bin}/dcfldd", "--version"
system bin/"dcfldd", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dcled.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def install
end

test do
system "#{bin}/dcled", "--help"
system bin/"dcled", "--help"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dcm2niix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def install
end

resource("homebrew-sample.dcm").stage testpath
system "#{bin}/dcm2niix", "-f", "%d_%e", "-z", "n", "-b", "y", testpath
system bin/"dcm2niix", "-f", "%d_%e", "-z", "n", "-b", "y", testpath
assert_predicate testpath/"localizer_1.nii", :exist?
assert_predicate testpath/"localizer_1.json", :exist?
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dcraw.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def install
end

test do
assert_match "\"dcraw\" v9", shell_output("#{bin}/dcraw", 1)
assert_match "\"dcraw\" v9", shell_output(bin/"dcraw", 1)
end
end
2 changes: 1 addition & 1 deletion Formula/d/deark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def install
(testpath/"test.gz").write ::Base64.decode64 <<~EOS
H4sICKU51VoAA3Rlc3QudHh0APNIzcnJ11HwyM9NTSpKLVfkAgBuKJNJEQAAAA==
EOS
system "#{bin}/deark", "test.gz"
system bin/"deark", "test.gz"
file = (testpath/"output.000.test.txt").readlines.first
assert_match "Hello, Homebrew!", file
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/defaultbrowser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ def install
test do
# defaultbrowser outputs a list of browsers by default;
# safari is pretty much guaranteed to be in that list
assert_match "safari", shell_output("#{bin}/defaultbrowser")
assert_match "safari", shell_output(bin/"defaultbrowser")
end
end
2 changes: 1 addition & 1 deletion Formula/d/denominator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def install
end

test do
system "#{bin}/denominator", "providers"
system bin/"denominator", "providers"
end
end
2 changes: 1 addition & 1 deletion Formula/d/depqbf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def install
end

test do
system "#{bin}/depqbf", "-h"
system bin/"depqbf", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/d/detach.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def install
end

test do
system "#{bin}/detach", "-p", "#{testpath}/pid", "sh", "-c", "sleep 10"
system bin/"detach", "-p", "#{testpath}/pid", "sh", "-c", "sleep 10"
pid = (testpath/"pid").read.to_i
ppid = shell_output("ps -p #{pid} -o ppid=").to_i
assert_equal 1, ppid
Expand Down
6 changes: 3 additions & 3 deletions Formula/d/dfix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ def install
end

test do
system "#{bin}/dfix", "--help"
system bin/"dfix", "--help"

cp "#{pkgshare}/testfile_master.d", "testfile.d"
system "#{bin}/dfix", "testfile.d"
system bin/"dfix", "testfile.d"
system "diff", "testfile.d", "#{pkgshare}/testfile_expected.d"
# Make sure that running dfix on the output of dfix changes nothing.
system "#{bin}/dfix", "testfile.d"
system bin/"dfix", "testfile.d"
system "diff", "testfile.d", "#{pkgshare}/testfile_expected.d"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dfmt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def install
}
EOS

system "#{bin}/dfmt", "-i", "test.d"
system bin/"dfmt", "-i", "test.d"

assert_equal expected, (testpath/"test.d").read
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dhall-lsp-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def install
"\r\n" \
"{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"exit\"}\r\n"

output = pipe_output("#{bin}/dhall-lsp-server", input, 0)
output = pipe_output(bin/"dhall-lsp-server", input, 0)

assert_match(/^Content-Length: \d+/i, output)
assert_match "dhall.server.lint", output
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dhcpdump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def install
end

test do
system "#{bin}/dhcpdump", "-h"
system bin/"dhcpdump", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def install
end

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

test do
output = pipe_output("#{bin}/diskonaut", shell_output("ls"), 2)
output = pipe_output(bin/"diskonaut", shell_output("ls"), 2)
assert_match "Error: IO-error occurred", output

assert_match "diskonaut #{version}", shell_output("#{bin}/diskonaut --version")
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dislocker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def install
end

test do
system "#{bin}/dislocker", "-h"
system bin/"dislocker", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/d/ditaa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def install
end

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

test do
system "#{bin}/djvu2pdf", "-h"
system bin/"djvu2pdf", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dmalloc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ def install
end

test do
system "#{bin}/dmalloc", "-b", "runtime"
system bin/"dmalloc", "-b", "runtime"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dmg2img.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def install
end

test do
assert_match version.to_s, shell_output("#{bin}/dmg2img")
assert_match version.to_s, shell_output(bin/"dmg2img")
output = shell_output("#{bin}/vfdecrypt 2>&1", 1)
assert_match "No Passphrase given.", output
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dnsmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def install
end

test do
assert_match version.to_s, shell_output("#{bin}/dnsmap", 1)
assert_match version.to_s, shell_output(bin/"dnsmap", 1)
end
end
2 changes: 1 addition & 1 deletion Formula/d/dnsperf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def install
end

test do
system "#{bin}/dnsperf", "-h"
system bin/"dnsperf", "-h"
system "#{bin}/resperf", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dnstop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ def install
end

test do
system "#{bin}/dnstop", "-v"
system bin/"dnstop", "-v"
end
end
2 changes: 1 addition & 1 deletion Formula/d/docker-clean.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def install
end

test do
system "#{bin}/docker-clean", "--help"
system bin/"docker-clean", "--help"
end
end
2 changes: 1 addition & 1 deletion Formula/d/docker-machine-nfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def install
end

test do
system "#{bin}/docker-machine-nfs"
system bin/"docker-machine-nfs"
end
end
2 changes: 1 addition & 1 deletion Formula/d/docuum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def install
test do
started_successfully = false

Open3.popen3({ "NO_COLOR" => "true" }, "#{bin}/docuum") do |_, _, stderr, wait_thread|
Open3.popen3({ "NO_COLOR" => "true" }, bin/"docuum") do |_, _, stderr, wait_thread|
stderr.each_line do |line|
if line.include?("Performing an initial vacuum on startup…")
Process.kill("TERM", wait_thread.pid)
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def install
test do
shell_output(bin/"dory")

system "#{bin}/dory", "config-file"
system bin/"dory", "config-file"
assert_predicate testpath/".dory.yml", :exist?, "Dory could not generate config file"

version = shell_output(bin/"dory version")
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/dos2unix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def install
assert_equal "foo\r\nbar\r\n", path.read

# dos2unix: convert cr+lf to lf
system "#{bin}/dos2unix", path
system bin/"dos2unix", path
assert_equal "foo\nbar\n", path.read
end
end
2 changes: 1 addition & 1 deletion Formula/d/dosbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ def install
end

test do
system "#{bin}/dosbox", "-version"
system bin/"dosbox", "-version"
end
end
2 changes: 1 addition & 1 deletion Formula/d/dotenv-linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def install
1FOO=bar
_FOO=bar
EOS
output = shell_output("#{bin}/dotenv-linter", 1)
output = shell_output(bin/"dotenv-linter", 1)
assert_match(/\.env:2\s+DuplicatedKey/, output)
assert_match(/\.env:3\s+UnorderedKey/, output)
assert_match(/\.env.test:1\s+LeadingCharacter/, output)
Expand Down
2 changes: 1 addition & 1 deletion Formula/d/doublecpp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def install
end

test do
system "#{bin}/doublecpp", "--version"
system bin/"doublecpp", "--version"
end
end

Expand Down
2 changes: 1 addition & 1 deletion Formula/d/doubledown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def install
end

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

test do
system "#{bin}/dssim", test_fixtures("test.png"), test_fixtures("test.png")
system bin/"dssim", test_fixtures("test.png"), test_fixtures("test.png")
end
end
2 changes: 1 addition & 1 deletion Formula/d/dtc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def install
/ {
};
EOS
system "#{bin}/dtc", "test.dts"
system bin/"dtc", "test.dts"
end
end
Loading
Loading