diff options
author | Luke Kanies <luke@madstop.com> | 2008-03-18 18:16:03 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-03-18 18:16:03 -0500 |
commit | a40e9b7dc58eef2e965e81f6c7be2dc7c14910d9 (patch) | |
tree | 133ce47fcf4de7107fd8a351d3bc3eaed9daf66f /test/lib | |
parent | 7d35ae8fed989ef3edb8a304f625786a04ee5faa (diff) | |
download | puppet-a40e9b7dc58eef2e965e81f6c7be2dc7c14910d9.tar.gz puppet-a40e9b7dc58eef2e965e81f6c7be2dc7c14910d9.tar.xz puppet-a40e9b7dc58eef2e965e81f6c7be2dc7c14910d9.zip |
Fixing some tests that only failed under certain
circumstances (mostly, when loaded with other files, or
when loaded from rake or autotest rather than separately).
Diffstat (limited to 'test/lib')
-rwxr-xr-x | test/lib/puppettest.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb index e276bdf0f..63f8121b5 100755 --- a/test/lib/puppettest.rb +++ b/test/lib/puppettest.rb @@ -43,6 +43,10 @@ class Class end module PuppetTest + # These need to be here for when rspec tests use these + # support methods. + @@tmpfiles = [] + # Munge cli arguments, so we can enable debugging if we want # and so we can run just specific methods. def self.munge_argv @@ -189,7 +193,7 @@ module PuppetTest Dir.mkdir(@configpath) end - @@tmpfiles = [@configpath, tmpdir()] + @@tmpfiles << @configpath << tmpdir() @@tmppids = [] @@cleaners = [] @@ -293,6 +297,7 @@ module PuppetTest } @@tmppids.clear + Puppet::Type.allclear Puppet::Util::Storage.clear Puppet.clear |