diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-15 05:11:23 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-15 05:11:23 +0000 |
| commit | 6c6ff03155101cebbd4ba76ce09cc23adf45f9f7 (patch) | |
| tree | 3bb715fdb079911c964b557df3a4d938355b26e9 | |
| parent | 192c07b43452b07b8dde710d76ade915063f914c (diff) | |
| download | puppet-6c6ff03155101cebbd4ba76ce09cc23adf45f9f7.tar.gz puppet-6c6ff03155101cebbd4ba76ce09cc23adf45f9f7.tar.xz puppet-6c6ff03155101cebbd4ba76ce09cc23adf45f9f7.zip | |
moving some testing and debugging around
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@666 980ebf18-57e1-0310-9a29-db15c13687c0
| -rw-r--r-- | lib/puppet/type/pfile.rb | 1 | ||||
| -rwxr-xr-x | test/types/tc_symlink.rb | 23 |
2 files changed, 1 insertions, 23 deletions
diff --git a/lib/puppet/type/pfile.rb b/lib/puppet/type/pfile.rb index 507cacf6a..8594681f4 100644 --- a/lib/puppet/type/pfile.rb +++ b/lib/puppet/type/pfile.rb @@ -1217,7 +1217,6 @@ module Puppet #Puppet.warning "Listing path %s" % path.inspect desc = server.list(path, r, ignore) - puts desc desc.split("\n").each { |line| file, type = line.split("\t") next if file == "/" diff --git a/test/types/tc_symlink.rb b/test/types/tc_symlink.rb index 43ee8e073..c9a334b70 100755 --- a/test/types/tc_symlink.rb +++ b/test/types/tc_symlink.rb @@ -10,29 +10,8 @@ require 'test/unit' # $Id$ -class TestSymlink < Test::Unit::TestCase +class TestSymlink < TestPuppet include FileTesting - # hmmm - # this is complicated, because we store references to the created - # objects in a central store - def setup - @symlink = nil - @@tmpfiles = [] - Puppet[:loglevel] = :debug if __FILE__ == $0 - end - - def teardown - @@tmpfiles.each { |file| - if FileTest.exists?(file) - Kernel.system("rm -rf %s" % file) - end - if FileTest.symlink?(file) - Kernel.system("rm -rf %s" % file) - end - } - Puppet::Type.allclear - end - def mktmpfile # because luke's home directory is on nfs, it can't be used for testing # as root |
