diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-08 20:03:26 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-08 20:03:26 +0000 |
| commit | 3726cee8a648268054b240ffae8d7f5f6272c75a (patch) | |
| tree | 5ed334e66f3babd4f2084088d7c87916714c0824 /test | |
| parent | 99db7bc2df7c086bb3c57c9e817b1403e225c5c4 (diff) | |
| download | puppet-3726cee8a648268054b240ffae8d7f5f6272c75a.tar.gz puppet-3726cee8a648268054b240ffae8d7f5f6272c75a.tar.xz puppet-3726cee8a648268054b240ffae8d7f5f6272c75a.zip | |
adding debug setting to the top-level test class
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@639 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rw-r--r-- | test/puppettest.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/puppettest.rb b/test/puppettest.rb index f4f35bf08..22b6a05a3 100644 --- a/test/puppettest.rb +++ b/test/puppettest.rb @@ -12,7 +12,12 @@ class TestPuppet < Test::Unit::TestCase end def setup - Puppet[:loglevel] = :debug if __FILE__ =~ /tc_.+\.rb/ + if $0 =~ /tc_.+\.rb/ + Puppet[:loglevel] = :debug + else + Puppet[:logdest] = "/dev/null" + Puppet[:httplog] = "/dev/null" + end @configpath = File.join(tmpdir, self.class.to_s + "configdir") @oldconf = Puppet[:puppetconf] |
