mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
iozone: fix test
This commit is contained in:
1 parent
96cffa012e
commit
0c40abca74
1 file changed
+5
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user