aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-05-05 16:20:37 -0500
committerJack Nagel2012-05-05 16:20:59 -0500
commit3200ceaa689deb700271e2f9d7f6c5d7d4ca3fce (patch)
treec8b9481a6ec5fe746868a313a32ffda183ed0e06 /Library
parent68426f4287ebd9819a8e8c39581e3c8a63964405 (diff)
downloadhomebrew-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.rb7
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