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

{testdisk,flash}: Remove hdiutil-requiring tests #66311

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 0 additions & 6 deletions Formula/flash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@ class Flash < Formula
def install
bin.install "flash"
end

test do
system "hdiutil", "create", "-size", "128k", "test.dmg"
output = shell_output("echo foo | #{bin}/flash --device /dev/disk42 test.dmg", 1)
assert_match "Please answer yes or no.", output
end
end
6 changes: 0 additions & 6 deletions Formula/testdisk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,4 @@ def install
"--prefix=#{prefix}"
system "make", "install"
end

test do
path = "test.dmg"
system "hdiutil", "create", "-megabytes", "10", path
system "#{bin}/testdisk", "/list", path
end
end