From e1147b9e20602ec3276d2960f9412c8d3b5da552 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 25 Mar 2013 13:17:53 -0500 Subject: autopano-sift-c: improve test --- Library/Formula/autopano-sift-c.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3