summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb
index e8b328de3..e7ee99c35 100644
--- a/test/lib/puppettest.rb
+++ b/test/lib/puppettest.rb
@@ -151,6 +151,10 @@ module PuppetTest
@@cleaners.each { |cleaner| cleaner.call() }
@@tmpfiles.each { |file|
+ unless file =~ /tmp/
+ puts "Not deleting tmpfile %s" % file
+ next
+ end
if FileTest.exists?(file)
system("chmod -R 755 %s" % file)
system("rm -rf %s" % file)