sflowtool: improve test
This commit is contained in:
parent
0bcf7c0dce
commit
1c9c872ad1
1 changed files with 5 additions and 2 deletions
|
@ -13,7 +13,10 @@ class Sflowtool < Formula
|
|||
system "make install"
|
||||
end
|
||||
|
||||
def test
|
||||
system "#{bin}/sflowtool -h 2>&1 | grep version"
|
||||
test do
|
||||
require 'open3'
|
||||
Open3.popen3("#{bin}/sflowtool", "-h") do |_, _, stderr|
|
||||
/sflowtool version: #{Regexp.escape(version)}/ === stderr.read
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue