summaryrefslogtreecommitdiffstats
path: root/test/util
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-07-07 10:30:15 -0700
committerNick Lewis <nick@puppetlabs.com>2010-07-07 11:51:54 -0700
commitcdd43825cee233af478d807cddda346e9d1fe142 (patch)
tree51f56c551f8364efa3053e404f04db568fa69943 /test/util
parente419293e58addfd8e4f0612ad121f68038daa14a (diff)
downloadpuppet-cdd43825cee233af478d807cddda346e9d1fe142.tar.gz
puppet-cdd43825cee233af478d807cddda346e9d1fe142.tar.xz
puppet-cdd43825cee233af478d807cddda346e9d1fe142.zip
[#4114] Fix failures in the unit tests
The initial commit changed the name of a method (close -> close_all) and changed the way the array log destination worked before we saw that the unit tests were using it differently.
Diffstat (limited to 'test/util')
-rwxr-xr-xtest/util/log.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/util/log.rb b/test/util/log.rb
index 00db10e61..b28d601e9 100755
--- a/test/util/log.rb
+++ b/test/util/log.rb
@@ -12,14 +12,13 @@ class TestLog < Test::Unit::TestCase
def setup
super
@oldloglevel = Puppet::Util::Log.level
- Puppet::Util::Log.close
+ Puppet::Util::Log.close_all
end
def teardown
super
- Puppet::Util::Log.close
+ Puppet::Util::Log.close_all
Puppet::Util::Log.level = @oldloglevel
- Puppet::Util::Log.newdestination(:console)
end
def getlevels
@@ -57,7 +56,7 @@ class TestLog < Test::Unit::TestCase
}
msgs = mkmsgs(levels)
assert(msgs.length == levels.length)
- Puppet::Util::Log.close
+ Puppet::Util::Log.close_all
count = 0
assert(FileTest.exists?(logfile), "Did not create logfile")