aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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