aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-03-25 13:17:53 -0500
committerJack Nagel2013-03-26 00:02:30 -0500
commite1147b9e20602ec3276d2960f9412c8d3b5da552 (patch)
tree97c5871aca082fdc568515b21fc51c63740b67a5 /Library
parentca248735460841a2dfeb5bf1375dc3ec871a170f (diff)
downloadhomebrew-e1147b9e20602ec3276d2960f9412c8d3b5da552.tar.bz2
autopano-sift-c: improve test
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/autopano-sift-c.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/autopano-sift-c.rb b/Library/Formula/autopano-sift-c.rb
index 9527ee934..48c61606d 100644
--- a/Library/Formula/autopano-sift-c.rb
+++ b/Library/Formula/autopano-sift-c.rb
@@ -13,7 +13,8 @@ class AutopanoSiftC < Formula
system "make install"
end
- def test
- system "#{bin}/autopano-sift-c | grep 'Version #{version} for hugin 0.7'"
+ test do
+ pipe = IO.popen("#{bin}/autopano-sift-c")
+ /Version #{Regexp.escape(version)}/ === pipe.read
end
end