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

b*: check pipe_output exit code (part 2) #203091

Merged
merged 8 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Formula/b/bigloo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ def install
(newline)
(exit)
SCHEME
assert_match "Hello World!\n", pipe_output("#{bin}/bigloo -i -", program)
assert_match "Hello World!\n", pipe_output("#{bin}/bigloo -i -", program, 0)
end
end
2 changes: 1 addition & 1 deletion Formula/b/bk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def install

test do
test_epub = test_fixtures("test.epub")
output = pipe_output("#{bin}/bk --meta #{test_epub}")
output = shell_output("#{bin}/bk --meta #{test_epub}")
assert_match "language: en", output
end
end
2 changes: 1 addition & 1 deletion Formula/b/blahtexml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def install

test do
input = '\sqrt{x^2+\alpha}'
output = pipe_output("#{bin}/blahtex --mathml", input)
output = pipe_output("#{bin}/blahtex --mathml", input, 0)
assert_match "<msqrt><msup><mi>x</mi><mn>2</mn></msup><mo ", output
end
end
2 changes: 1 addition & 1 deletion Formula/b/bootloadhid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ def install

test do
touch "test.hex"
assert_equal "No data in input file, exiting.", pipe_output("#{bin}/bootloadHID -r test.hex 2>&1").strip
assert_equal "No data in input file, exiting.", shell_output("#{bin}/bootloadHID -r test.hex 2>&1").strip
end
end
2 changes: 1 addition & 1 deletion Formula/b/boxes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ def install
end

test do
assert_match "test brew", pipe_output(bin/"boxes", "test brew")
assert_match "test brew", pipe_output(bin/"boxes", "test brew", 0)
end
end
2 changes: 1 addition & 1 deletion Formula/b/bsdconv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def install
end

test do
output = pipe_output("#{bin}/bsdconv BIG5:UTF-8", "\263\134\273\134")
output = pipe_output("#{bin}/bsdconv BIG5:UTF-8", "\263\134\273\134", 0)
output.force_encoding("UTF-8") if output.respond_to?(:force_encoding)
assert_equal "許蓋", output
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/b/btpd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ def install
end

test do
assert_match "Torrents can be specified", pipe_output("#{bin}/btcli --help 2>&1")
assert_match "Torrents can be specified", shell_output("#{bin}/btcli --help 2>&1", 1)
end
end
2 changes: 1 addition & 1 deletion Formula/b/bwidget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def install
puts [package require BWidget]
exit
TCL
assert_equal version.to_s, pipe_output("#{Formula["tcl-tk"].bin}/tclsh", test_bwidget).chomp
assert_equal version.to_s, pipe_output(Formula["tcl-tk"].bin/"tclsh", test_bwidget, 0).chomp
end
end
Loading