diff options
| author | Jack Nagel | 2012-05-05 16:20:37 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-05-05 16:20:59 -0500 |
| commit | 3200ceaa689deb700271e2f9d7f6c5d7d4ca3fce (patch) | |
| tree | c8b9481a6ec5fe746868a313a32ffda183ed0e06 /Library | |
| parent | 68426f4287ebd9819a8e8c39581e3c8a63964405 (diff) | |
| download | homebrew-3200ceaa689deb700271e2f9d7f6c5d7d4ca3fce.tar.bz2 | |
rrdtool: use mktemp and quicklook in test
Otherwise we are writing files to $PWD, which is undesirable.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rrdtool.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/rrdtool.rb b/Library/Formula/rrdtool.rb index 0ee816373..b6e5e3900 100644 --- a/Library/Formula/rrdtool.rb +++ b/Library/Formula/rrdtool.rb @@ -46,9 +46,10 @@ class Rrdtool < Formula end def test - system "ruby", prefix+"test.rb" - system "open test.png" - puts "You may want to `rm test.{rrd,png}`" + mktemp do + system "ruby", prefix/"test.rb" + system "/usr/bin/qlmanage", "-p", "test.png" + end end end |
