aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-03-26 10:52:44 -0500
committerJack Nagel2013-03-26 12:58:45 -0500
commit0c40abca74ded7273dcf4fed65102cbd274f968b (patch)
tree984612deba8a35aa5d6287bfe99762a58e933cca /Library/Formula
parent96cffa012e95f4985de76838686dd631d08bb5ac (diff)
downloadhomebrew-0c40abca74ded7273dcf4fed65102cbd274f968b.tar.bz2
iozone: fix test
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/iozone.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/iozone.rb b/Library/Formula/iozone.rb
index 0284e9d12..9e33d90dd 100644
--- a/Library/Formula/iozone.rb
+++ b/Library/Formula/iozone.rb
@@ -20,8 +20,11 @@ class Iozone < Formula
man1.install 'docs/iozone.1'
end
- def test
- `#{bin}/iozone -I -s 16M | grep -c O_DIRECT`.chomp == '1'
+ test do
+ require 'open3'
+ Open3.popen3("#{bin}/iozone", "-I", "-s", "16M") do |_, stdout, _|
+ /File size set to 16384 KB/ === stdout.read
+ end
end
end