Skip to content

Commit

Permalink
testdisk: use fixtures for test
Browse files Browse the repository at this point in the history
Per the discussion on Homebrew#66311, "hdiutil -create" no longer works
inside of the testing sandbox; use the new gzip'ed disk image
inside fixtures instead
  • Loading branch information
mitchblank committed Dec 20, 2020
1 parent dce42a7 commit 2fde011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/testdisk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def install

test do
path = "test.dmg"
system "hdiutil", "create", "-megabytes", "10", path
cp test_fixtures(path + ".gz"), path + ".gz"
system "gunzip", path
system "#{bin}/testdisk", "/list", path
end
end

0 comments on commit 2fde011

Please sign in to comment.