diff options
| author | Luke Kanies <luke@madstop.com> | 2005-08-17 15:57:22 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-08-17 15:57:22 +0000 |
| commit | 51ffd6fa7fcdf2f407c6f7a1ae6218d2c5038ac1 (patch) | |
| tree | bbbf962d3442a33be189b16fe88a06765d44eca8 | |
| parent | 54e5eb41edea827a390b560a54e55653f789eb2e (diff) | |
| download | puppet-51ffd6fa7fcdf2f407c6f7a1ae6218d2c5038ac1.tar.gz puppet-51ffd6fa7fcdf2f407c6f7a1ae6218d2c5038ac1.tar.xz puppet-51ffd6fa7fcdf2f407c6f7a1ae6218d2c5038ac1.zip | |
trying to create a testing base class
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@556 980ebf18-57e1-0310-9a29-db15c13687c0
| -rw-r--r-- | test/puppettest.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/puppettest.rb b/test/puppettest.rb index 471a58521..57654dd1a 100644 --- a/test/puppettest.rb +++ b/test/puppettest.rb @@ -1,5 +1,25 @@ # $Id$ +class TestPuppet < Test::Unit::TestCase + def setup + @@tmpfiles = [] + Puppet[:loglevel] = :debug if __FILE__ == $0 + Puppet::Type.allclear + end + + def teardown + @@tmpfiles.each { |file| + if FileTest.exists?(file) + system("chmod -R 755 %s" % file) + system("rm -rf %s" % file) + end + } + @@tmpfiles.clear + end + + def test_nothing + end +end unless defined? PuppetTestSuite $:.unshift File.join(Dir.getwd, '../lib') |
