diff options
| author | Jack Nagel | 2013-03-25 13:17:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-26 00:02:30 -0500 |
| commit | e1147b9e20602ec3276d2960f9412c8d3b5da552 (patch) | |
| tree | 97c5871aca082fdc568515b21fc51c63740b67a5 /Library | |
| parent | ca248735460841a2dfeb5bf1375dc3ec871a170f (diff) | |
| download | homebrew-e1147b9e20602ec3276d2960f9412c8d3b5da552.tar.bz2 | |
autopano-sift-c: improve test
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/autopano-sift-c.rb | 5 |
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 |
