From 3200ceaa689deb700271e2f9d7f6c5d7d4ca3fce Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 5 May 2012 16:20:37 -0500 Subject: rrdtool: use mktemp and quicklook in test Otherwise we are writing files to $PWD, which is undesirable. Signed-off-by: Jack Nagel --- Library/Formula/rrdtool.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3