aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/iozone.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-04 12:12:41 -0700
committerAdam Vandenberg2014-08-01 07:58:10 -0700
commitff86702dd85eab420f6f58e8dcf8375dae4b22b9 (patch)
treee0071c9d3604ab8d311679aa77ce9cce90da962f /Library/Formula/iozone.rb
parent1dc876667538fb33ebc9eb30edd3bc9b530592a6 (diff)
downloadhomebrew-ff86702dd85eab420f6f58e8dcf8375dae4b22b9.tar.bz2
use test helpers
Diffstat (limited to 'Library/Formula/iozone.rb')
-rw-r--r--Library/Formula/iozone.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Formula/iozone.rb b/Library/Formula/iozone.rb
index 86e1fe21e..0b9531524 100644
--- a/Library/Formula/iozone.rb
+++ b/Library/Formula/iozone.rb
@@ -19,10 +19,7 @@ class Iozone < Formula
end
test do
- require 'open3'
- Open3.popen3("#{bin}/iozone", "-I", "-s", "16M") do |_, stdout, _|
- assert_match /File size set to 16384 kB/, stdout.read
- end
+ assert_match /File size set to 16384 kB/, shell_output("#{bin}/iozone -I -s 16M")
end
end